We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd654ce commit 6439c8bCopy full SHA for 6439c8b
index.js
@@ -32,7 +32,7 @@ function fastifyPostgres (fastify, options, next) {
32
fastify.pg[name] = db
33
} else {
34
if (fastify.pg) {
35
- console.warn('fastify-postgres has already registered')
+ next(new Error('fastify-postgres has already registered'))
36
37
fastify.pg = db
38
}
0 commit comments