Skip to content

Commit e8334ee

Browse files
authoredMar 11, 2025··
fix(core): Log all command errors messages (#13827)
1 parent 526a2e4 commit e8334ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/cli/src/commands/base-command.ts

+1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export abstract class BaseCommand extends Command {
240240
}
241241

242242
async finally(error: Error | undefined) {
243+
if (error?.message) this.logger.error(error.message);
243244
if (inTest || this.id === 'start') return;
244245
if (Db.connectionState.connected) {
245246
await sleep(100); // give any in-flight query some time to finish

0 commit comments

Comments
 (0)
Please sign in to comment.