File size: 348 Bytes
b91e262 | 1 2 3 4 5 6 7 8 9 10 11 | export class UsageError extends Error {
constructor(message: string, docUrl: string) {
super(`${message}\n\nLearn more: ${docUrl}`)
this.name = 'UsageError'
// This error is meant to interrupt the server start/build process
// but the stack trace isn't meaningful, as it points to internal code.
this.stack = undefined
}
}
|