Skip to content

Commit fa2491e

Browse files
Update lib/mongoose-core.module.ts
Return MongooseError Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
1 parent eec8f18 commit fa2491e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongoose-core.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
4848
connectionFactory || ((connection) => connection);
4949

5050
const mongooseConnectionError =
51-
connectionError || ((error) => {});
51+
connectionError || ((error) => error);
5252

5353
const mongooseConnectionName = getConnectionToken(connectionName);
5454

0 commit comments

Comments
 (0)