File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -497,23 +497,24 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
497497 if ( / D a t a d i r e c t o r y .* ? n o t f o u n d / i. test ( line ) ) {
498498 this . emit ( MongoInstanceEvents . instanceError , 'Data directory not found' ) ;
499499 }
500- if ( / C U R L _ O P E N S S L _ 3 . * n o t f o u n d / i. test ( line ) ) {
500+ if ( / C U R L _ O P E N S S L _ 3 [ ' \s ] + n o t f o u n d / i. test ( line ) ) {
501501 this . emit (
502502 MongoInstanceEvents . instanceError ,
503503 'libcurl3 is not available on your system. Mongod requires it and cannot be started without it.\n' +
504504 'You should manually install libcurl3 or try to use an newer version of MongoDB\n'
505505 ) ;
506506 }
507- if ( / C U R L _ O P E N S S L _ 4 . * n o t f o u n d / i. test ( line ) ) {
507+ if ( / C U R L _ O P E N S S L _ 4 [ ' \s ] + n o t f o u n d / i. test ( line ) ) {
508508 this . emit (
509509 MongoInstanceEvents . instanceError ,
510510 'libcurl4 is not available on your system. Mongod requires it and cannot be started without it.\n' +
511511 'You need to manually install libcurl4\n'
512512 ) ;
513513 }
514- if ( / l i b . * : c a n n o t o p e n s h a r e d o b j e c t / i. test ( line ) ) {
514+ if ( / l i b [ \w - . ] + : c a n n o t o p e n s h a r e d o b j e c t / i. test ( line ) ) {
515515 const lib =
516- line . match ( / ( l i b .* ) : c a n n o t o p e n s h a r e d o b j e c t / i) ?. [ 1 ] . toLocaleLowerCase ( ) ?? 'unknown' ;
516+ line . match ( / ( l i b [ \w - . ] + ) : c a n n o t o p e n s h a r e d o b j e c t / i) ?. [ 1 ] . toLocaleLowerCase ( ) ??
517+ 'unknown' ;
517518 this . emit (
518519 MongoInstanceEvents . instanceError ,
519520 `Instance Failed to start because an library file is missing: "${ lib } "`
You can’t perform that action at this time.
0 commit comments