Merge pull request #30020 from backstage/sennyeya/fix-generate-error
fix: error message not showing outside of watch mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user