Skip to content

Commit

Permalink
log full error
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Nov 9, 2023
1 parent ec2f7d9 commit f0f7a56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli-repl/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function enableFipsIfRequested() {
}
enableFipsIfRequested();

import util from 'util';
import { CliRepl } from './cli-repl';
import { parseCliArgs } from './arg-parser';
import { runSmokeTests } from './smoke-tests';
Expand Down Expand Up @@ -220,6 +221,7 @@ async function main() {
});
} catch (e: any) {
console.error(`${e?.name}: ${e?.message}`);
console.error('full error: ' + util.inspect(e, { depth: null }));
if (repl !== undefined) {
repl.bus.emit('mongosh:error', e, 'startup');
}
Expand Down

0 comments on commit f0f7a56

Please sign in to comment.