From a60733a18c884d81e6aff8430b192c830f10815c Mon Sep 17 00:00:00 2001 From: myk bilokonsky Date: Sat, 15 Apr 2017 15:28:04 +0200 Subject: cleanup --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ecb2a00..3e69036 100644 --- a/index.js +++ b/index.js @@ -54,8 +54,10 @@ function cycle() { } client.end(function (err) { - console.error('error disconnecting from client'); - console.dir(err); + if (err) { + console.error('error disconnecting from client'); + console.dir(err); + } }); boost(result.rows); -- cgit