Merge branch 'api-v3' of github.com:HabitRPG/habitrpg into api-v3
This commit is contained in:
@@ -5,7 +5,10 @@ import extendableBuiltin from './extendableBuiltin';
|
||||
export class CustomError extends extendableBuiltin(Error) {
|
||||
constructor () {
|
||||
super();
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user