tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

util.ts (278B)


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