From 34bdd5ed7eda3bd1f2061cdfd1b7e5e983887424 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 13 Apr 2026 12:24:14 +0200 Subject: [PATCH] cli-node: delete orphaned errors.ts (#33856) Made-with: Cursor Signed-off-by: Patrik Oldsberg --- packages/cli-node/src/errors.ts | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 packages/cli-node/src/errors.ts diff --git a/packages/cli-node/src/errors.ts b/packages/cli-node/src/errors.ts deleted file mode 100644 index 8be5faeb4f..0000000000 --- a/packages/cli-node/src/errors.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2024 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { CustomErrorBase } from '@backstage/errors'; - -export class ExitCodeError extends CustomErrorBase { - readonly code: number; - - constructor(code: number, command?: string) { - super( - command - ? `Command '${command}' exited with code ${code}` - : `Child exited with code ${code}`, - ); - this.code = code; - } -} - -export class NotFoundError extends CustomErrorBase {}