Skip to content

Commit

Permalink
fix(MongoInstance::checkErrorinLine): add more info to "aborting afte…
Browse files Browse the repository at this point in the history
…r" error
  • Loading branch information
hasezoey committed May 8, 2023
1 parent 08353b4 commit 12fca33
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,13 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
}

if (/\*\*\*aborting after/i.test(line)) {
const match = line.match(/\*\*\*aborting after ([^\n]+)/i);

const extra = match?.[1] ? ` (${match[1]})` : '';

this.emit(
MongoInstanceEvents.instanceError,
new StdoutInstanceError('Mongod internal error')
new StdoutInstanceError('Mongod internal error' + extra)
);
}
}
Expand Down

0 comments on commit 12fca33

Please sign in to comment.