diff --git a/.changeset/good-paths-act.md b/.changeset/good-paths-act.md new file mode 100644 index 0000000000..dc33b43766 --- /dev/null +++ b/.changeset/good-paths-act.md @@ -0,0 +1,5 @@ +--- +'@backstage/repo-tools': patch +--- + +Fix an issue where errors were not printed to console when running `backstage-repo-tools schema openapi generate` without the `--watch` flag. diff --git a/packages/repo-tools/src/commands/package/schema/openapi/generate/index.ts b/packages/repo-tools/src/commands/package/schema/openapi/generate/index.ts index bda80d2fb1..822c644c55 100644 --- a/packages/repo-tools/src/commands/package/schema/openapi/generate/index.ts +++ b/packages/repo-tools/src/commands/package/schema/openapi/generate/index.ts @@ -95,6 +95,7 @@ export async function command(opts: OptionValues) { try { await sharedCommand(); } catch (err) { + console.error(chalk.red('Error: ', err)); process.exit(1); } }