mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
add tests, move CustomError to common, fix casting
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
// Base class for custom application errors
|
||||
// It extends Error and capture the stack trace
|
||||
export class CustomError extends Error {
|
||||
constructor () {
|
||||
super();
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
import CustomError from '../../../../common/script/api-v3/customError';
|
||||
|
||||
/**
|
||||
* @apiDefine NotAuthorized
|
||||
|
||||
Reference in New Issue
Block a user