Skip to content

Commit

Permalink
style(): add missing white line
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed May 26, 2020
1 parent 6acde56 commit 3b73e78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/common/typeorm.utils.ts
Expand Up @@ -115,7 +115,7 @@ export function handleRetry(
): <T>(source: Observable<T>) => Observable<T> {
return <T>(source: Observable<T>) =>
source.pipe(
retryWhen((e) =>
retryWhen(e =>
e.pipe(
scan((errorCount, error: Error) => {
const connectionInfo =
Expand All @@ -125,10 +125,10 @@ export function handleRetry(
const verboseMessage = verboseRetryLog
? ` Message: ${error.message}.`
: '';

logger.error(
`Unable to connect to the database${connectionInfo}.${verboseMessage} Retrying (${
errorCount + 1
})...`,
`Unable to connect to the database${connectionInfo}.${verboseMessage} Retrying (${errorCount +
1})...`,
error.stack,
);
if (errorCount + 1 >= retryAttempts) {
Expand Down

0 comments on commit 3b73e78

Please sign in to comment.