diff options
Diffstat (limited to '')
-rw-r--r-- | lib/db.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -85,7 +85,8 @@ function readFromDB(id, callback) { } else { //logger.info(result.rows); if (result.rows.length <= 0) { - callback("not found note in db: " + util.inspect(id), null); + callback("not found note in db", null); + return logger.error("not found note in db: " + id, err); } else { if(config.debug) logger.info("read from db success"); |