balena-supervisor/test/lib/errors.ts
Pagan Gazzard 379730a9e1 Update typed-error to 3.x
Update typed-error from 2.0.0 to 3.2.1

Change-type: patch
2020-08-19 10:07:54 +01:00

9 lines
190 B
TypeScript

import { TypedError } from 'typed-error';
export default class ShortStackError extends TypedError {
constructor(err: Error | string = '') {
Error.stackTraceLimit = 1;
super(err);
}
}