mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Upgrade oclif (no-changelog) (#9881)
This commit is contained in:
committed by
GitHub
parent
d9747d5e9b
commit
2885091ced
@@ -1,7 +1,6 @@
|
||||
import 'reflect-metadata';
|
||||
import { Container } from 'typedi';
|
||||
import { Command } from '@oclif/core';
|
||||
import { ExitError } from '@oclif/core/lib/errors';
|
||||
import { Command, Errors } from '@oclif/core';
|
||||
import { ApplicationError, ErrorReporterProxy as ErrorReporter, sleep } from 'n8n-workflow';
|
||||
import { BinaryDataService, InstanceSettings, ObjectStoreService } from 'n8n-core';
|
||||
import type { AbstractServer } from '@/AbstractServer';
|
||||
@@ -308,7 +307,7 @@ export abstract class BaseCommand extends Command {
|
||||
await sleep(100); // give any in-flight query some time to finish
|
||||
await Db.close();
|
||||
}
|
||||
const exitCode = error instanceof ExitError ? error.oclif.exit : error ? 1 : 0;
|
||||
const exitCode = error instanceof Errors.ExitError ? error.oclif.exit : error ? 1 : 0;
|
||||
this.exit(exitCode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user