fix(core): Log all command errors messages (#13827)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-03-11 13:06:28 +01:00
committed by GitHub
parent 526a2e4ca3
commit e8334eefa1

View File

@@ -240,6 +240,7 @@ export abstract class BaseCommand extends Command {
}
async finally(error: Error | undefined) {
if (error?.message) this.logger.error(error.message);
if (inTest || this.id === 'start') return;
if (Db.connectionState.connected) {
await sleep(100); // give any in-flight query some time to finish