We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d217989 commit 943f7d2Copy full SHA for 943f7d2
1 file changed
src/main.ts
@@ -63,10 +63,11 @@ generate(options)
63
logWarn(`\nLegacy models discovered:\n${legacyFiles.join('\n')}`);
64
}
65
})
66
- .catch((error: Error) =>
+ .catch((error: Error) => {
67
console.error(
68
...(argv.verbose
69
? ['Error encountered during generating:', error]
70
: [error.message]),
71
- ),
72
- );
+ );
+ throw error;
73
+ });
0 commit comments