blob: 37a5db3568282f761dd0984ccbba892f58d1fc9d [file] [log] [blame] [edit]
/**
* 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;
}
}