blob: 37a5db3568282f761dd0984ccbba892f58d1fc9d (
plain)
1
2
3
4
5
6
7
8
9
10
|
/**
* Error without a stack, which can be used to fatally exit from `tool/` scripts with a
* user-friendly message (and no confusing stack).
*/
export class StacklessError extends Error {
constructor(message: string) {
super(message);
this.stack = undefined;
}
}
|