Skip to content

Commit

Permalink
fix: Premature exit
Browse files Browse the repository at this point in the history
  • Loading branch information
steilerDev committed Sep 2, 2023
1 parent ba5b937 commit ceb2b28
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MetricsExporter} from "./app/event/metrics-exporter.js";
import {LogInterface} from "./app/event/log.js";
import {iCPSApp} from "./app/icloud-app.js";

// Creates the appropriate application and initiates the ResourceManager
let app: iCPSApp;
try {
app = await appFactory(process.argv);
Expand All @@ -15,13 +14,11 @@ try {
process.exit(3);
}

// Creates helper infrastructure on global level, which will subscribe to the global event bus provided by the ResourceManager
const _errorHandler = new ErrorHandler();
const _logInterface = new LogInterface();
const _cliInterface = new CLIInterface();
const _metricsExporter = new MetricsExporter();

// Executes app
try {
await app.run();
} catch (err) {
Expand Down

0 comments on commit ceb2b28

Please sign in to comment.