Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean

  • Loading branch information...
commit 9c9c740e1424955e438aabd780da7fbb046c2511 1 parent 49646b3
@contra contra authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/nodester.js
  2. +1 −1  src/nodester.coffee
View
2  lib/nodester.js
@@ -178,7 +178,7 @@
if (errCode) {
errCause = "HTTP Error " + errCode + " returned.";
}
- if ((success != null) && (success.message != null) && (success.status != null) && !/^success/.exec(success.status)) {
+ if (((success != null ? success.message : void 0) != null) && ((success != null ? success.status : void 0) != null) && !/^success/.exec(success.status)) {
errCause = success.message;
}
if (!body) {
View
2  src/nodester.coffee
@@ -77,7 +77,7 @@ handleResponse = (cb) ->
errCause = "JSON Parse error!"
if errCode then errCause = "HTTP Error #{ errCode } returned."
- if success? and success.message? and success.status? and not /^success/.exec success.status then errCause = success.message
+ if success?.message? and success?.status? and not /^success/.exec success.status then errCause = success.message
errCause ?= "No response received." unless body
if errCause
Please sign in to comment.
Something went wrong with that request. Please try again.