Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #46 from privman/master

Improve output when receiving non-JSON from server
  • Loading branch information...
commit 33778680d19a50c0572990ebeb1bfcb8fecaa743 2 parents 6c9292e + 2a7f936
@norlin norlin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/couchdb.js
View
2  lib/couchdb.js
@@ -226,7 +226,7 @@ exports.createClient = function(port, host, user, pass, maxListeners, secure) {
json = JSON.parse(buffer);
} catch (e) {
cbFired = true;
- return cb && cb(new Error('invalid json: '+json+" "+e.message));
+ return cb && cb(new Error('invalid json: "'+buffer+'". '+e.message));
}
if ('error' in json) {
Please sign in to comment.
Something went wrong with that request. Please try again.