Inside handle_repsone method (file: lib/uploader.coffee), for HTTP error codes 400,401,404,420 and 500, promise is being resolved deferred.resolve(result) (line number: 178) with result object holding the error object. Instead, shouldn't the promise be rejected with preferably error object deferred.reject(result["error"]) or result object deferred.reject(result)?
Inside handle_repsone method (file: lib/uploader.coffee), for HTTP error codes 400,401,404,420 and 500, promise is being resolved deferred.resolve(result) (line number: 178) with result object holding the error object. Instead, shouldn't the promise be rejected with preferably error object deferred.reject(result["error"]) or result object deferred.reject(result)?