d670dd5d94
- Added a CLI usage-error type for argument validation failures. - Reported invalid --max-time values from launch and ACP as clean usage errors with exit code 2. - Covered the no-stack-trace CLI error path for invalid max-time input. Fixes #5041
8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
/** Command-line input error that should be rendered without a stack trace. */
|
|
export class CliUsageError extends Error {
|
|
constructor(message: string) {
|
|
super(message);
|
|
this.name = "CliUsageError";
|
|
}
|
|
}
|