Ensure all errors in `cli` inherit from `ApplicationError` to continue normalizing all the errors we report to Sentry Follow-up to: https://github.com/n8n-io/n8n/pull/7820
8 lines
204 B
TypeScript
8 lines
204 B
TypeScript
import { ResponseError } from './abstract/response.error';
|
|
|
|
export class BadRequestError extends ResponseError {
|
|
constructor(message: string, errorCode?: number) {
|
|
super(message, 400, errorCode);
|
|
}
|
|
}
|