Don't complain on all QueryResult errors
This commit is contained in:
parent
6dc46a6593
commit
a42936ad0d
1 changed files with 2 additions and 5 deletions
|
|
@ -5,11 +5,8 @@ const logger = require('./logger')
|
|||
const pgp = Pgp({
|
||||
pgNative: true,
|
||||
error: (err, e) => {
|
||||
if (e.cn) logger.error('Database not reachable.')
|
||||
if (e.query) {
|
||||
logger.error(e.query)
|
||||
logger.error(e.params)
|
||||
}
|
||||
if (e.cn) return logger.error('Database not reachable.')
|
||||
if (e.query) return
|
||||
logger.error(err)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue