Skip to content

Commit

Permalink
docs: correct misuse of Error constructor (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Dec 5, 2023
1 parent 3ffe132 commit 5f34bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PATTERNS.md
Expand Up @@ -98,7 +98,7 @@ const opts = {
case 'bclient':
return new Redis(REDIS_URL, redisOpts);
default:
throw new Error('Unexpected connection type: ', type);
throw new Error('Unexpected connection type: ' + type);
}
}
}
Expand Down

0 comments on commit 5f34bce

Please sign in to comment.