Skip to content

Commit e930248

Browse files
committed
fix(MongoInstance::checkErrorInLine): improve error message for "cannot open shared object"
1 parent 19c3168 commit e930248

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/mongodb-memory-server-core/src/util/MongoInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
614614
this.emit(
615615
MongoInstanceEvents.instanceError,
616616
new StdoutInstanceError(
617-
`Instance Failed to start because an library file is missing: "${lib}"`
617+
`Instance failed to start because a library is missing or cannot be opened: "${lib}"`
618618
)
619619
);
620620
}

packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ describe('MongodbInstance', () => {
411411
expect(event).toBeInstanceOf(StdoutInstanceError);
412412
assertIsError(event); // has to be used, because there is not typeguard from "expect(variable).toBeInstanceOf"
413413
expect(event.message).toEqual(
414-
'Instance Failed to start because an library file is missing: "libcrypto.so.10"'
414+
'Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.10"'
415415
);
416416
});
417417

@@ -513,7 +513,7 @@ describe('MongodbInstance', () => {
513513
expect(event).toBeInstanceOf(StdoutInstanceError);
514514
assertIsError(event); // has to be used, because there is not typeguard from "expect(variable).toBeInstanceOf"
515515
expect(event.message).toEqual(
516-
'Instance Failed to start because an library file is missing: "libcrypto.so.1.1"'
516+
'Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.1.1"'
517517
);
518518
});
519519
});

0 commit comments

Comments
 (0)