mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
fix(core): Log all command errors messages (#13827)
This commit is contained in:
committed by
GitHub
parent
526a2e4ca3
commit
e8334eefa1
@@ -240,6 +240,7 @@ export abstract class BaseCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async finally(error: Error | undefined) {
|
async finally(error: Error | undefined) {
|
||||||
|
if (error?.message) this.logger.error(error.message);
|
||||||
if (inTest || this.id === 'start') return;
|
if (inTest || this.id === 'start') return;
|
||||||
if (Db.connectionState.connected) {
|
if (Db.connectionState.connected) {
|
||||||
await sleep(100); // give any in-flight query some time to finish
|
await sleep(100); // give any in-flight query some time to finish
|
||||||
|
|||||||
Reference in New Issue
Block a user