feat(core): Upgrade oclif (no-changelog) (#9881)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-06-27 17:26:19 +02:00
committed by GitHub
parent d9747d5e9b
commit 2885091ced
4 changed files with 46 additions and 104 deletions

View File

@@ -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);
}