diff --git a/lib/connect.js b/lib/connect.js index 7ec71da..599687d 100644 --- a/lib/connect.js +++ b/lib/connect.js @@ -210,7 +210,7 @@ var KiteConnect = function(params) { // `error.request` is an instance of XMLHttpRequest in the browser and an instance of // http.ClientRequest in node.js resp.error_type = "NetworkException"; - resp.message = "No response from server with error code: " + error.code; + resp.message = "No response from server with message: " + error.message; } else if (error.message) { resp = error }