clickhouse
Advanced tools
Comparing version 1.0.8 to 1.0.999999999
10
index.js
@@ -173,4 +173,8 @@ 'use strict'; | ||
function (error, response, body) { | ||
if (response.statusCode == 200 && response.statusMessage == 'OK') cb(null, me._parseData(body)); | ||
else cb(error ? error : response.body || response.statusMessage); | ||
if (error) return cb(error); | ||
if (response.statusCode == 200 && response.statusMessage == 'OK') return cb(null, me._parseData(body)); | ||
// Если попали сюда - значит что-то пошло не так | ||
cb(response.body || response.statusMessage); | ||
} | ||
@@ -293,2 +297,2 @@ ); | ||
module.exports = ClickHouse; | ||
module.exports = ClickHouse; |
@@ -28,3 +28,3 @@ { | ||
"name": "clickhouse", | ||
"version": "1.0.8", | ||
"version": "1.0.999999999", | ||
"repository": { | ||
@@ -31,0 +31,0 @@ "type": "git", |
8813
231