fix(gateway): throw error when run from cli (#2627)
* fix: throw error when run from cli * chore: log error
This commit is contained in:
parent
6cc88dfa2b
commit
b9abbd5cbd
@ -215,7 +215,15 @@ export class Gateway extends EventEmitter {
|
||||
}
|
||||
|
||||
const mainApp = AppSupervisor.getInstance().bootMainApp(options.mainAppOptions);
|
||||
mainApp.runAsCLI();
|
||||
|
||||
mainApp
|
||||
.runAsCLI(process.argv, {
|
||||
throwError: true,
|
||||
from: 'node',
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
}
|
||||
|
||||
isStart() {
|
||||
|
Loading…
Reference in New Issue
Block a user