Merge pull request #30020 from backstage/sennyeya/fix-generate-error

fix: error message not showing outside of watch mode
This commit is contained in:
Aramis Sennyey
2025-05-21 12:10:41 -04:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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.
@@ -95,6 +95,7 @@ export async function command(opts: OptionValues) {
try {
await sharedCommand();
} catch (err) {
console.error(chalk.red('Error: ', err));
process.exit(1);
}
}