diff options
author | myk bilokonsky <mbilokonsky@gmail.com> | 2017-04-15 15:28:04 +0200 |
---|---|---|
committer | myk bilokonsky <mbilokonsky@gmail.com> | 2017-04-15 15:28:04 +0200 |
commit | a60733a18c884d81e6aff8430b192c830f10815c (patch) | |
tree | 0ede21ca832f472cd2df6f44c0a7ff56ae0d3a42 | |
parent | 6344ee26da9d234801cec21bd6d4d76e370e1b5d (diff) |
cleanup
-rw-r--r-- | index.js | 6 |
1 files 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); |