repo-tools, create-app: replace duplicate error utilities with cli-common imports (#33893)

* Replace duplicate error utilities with @backstage/cli-common imports

Remove dead CustomError and ExitCodeError classes from repo-tools and
create-app, replacing them with the ExitCodeError import from
@backstage/cli-common. This fixes the instanceof check in exitWithError
so it actually catches errors thrown by cli-common's run().

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor

* Add changeset for repo-tools and create-app

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor

---------

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-04-15 14:39:42 +02:00
committed by GitHub
parent ba9717cf70
commit 927c0039d7
3 changed files with 8 additions and 38 deletions
@@ -0,0 +1,6 @@
---
'@backstage/repo-tools': patch
'@backstage/create-app': patch
---
Replaced internal error utilities with shared ones from `@backstage/cli-common`.