Skip to content

Commit

Permalink
Add try catch to connect()
Browse files Browse the repository at this point in the history
  • Loading branch information
ygpark80 committed Apr 24, 2024
1 parent fce493f commit 01b1bb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/orm/ioredis/src/utils/registerConnectionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export function registerConnectionProvider({provide, name = "default"}: CreateCo
} as RedisOptions);
}

await connection.connect();
try {
await connection.connect();
} catch (e) {}

logger.info("Connected to redis database...");

Expand Down

0 comments on commit 01b1bb2

Please sign in to comment.