Index: remoting/webapp/crd/js/xhr.js |
diff --git a/remoting/webapp/crd/js/xhr.js b/remoting/webapp/crd/js/xhr.js |
index 90d8e555b117d3a3b34430546f79be15d0190efe..2d08c8c627b22ad089f4443a3fda0313f59c62f3 100644 |
--- a/remoting/webapp/crd/js/xhr.js |
+++ b/remoting/webapp/crd/js/xhr.js |
@@ -199,16 +199,15 @@ remoting.xhr.startInternal_ = function( |
* Generic success/failure response proxy. |
* |
* @param {function():void} onDone |
- * @param {function(remoting.Error):void} onError |
+ * @param {function(!remoting.Error):void} onError |
* @return {function(XMLHttpRequest):void} |
*/ |
remoting.xhr.defaultResponse = function(onDone, onError) { |
/** @param {XMLHttpRequest} xhr */ |
var result = function(xhr) { |
- /** @type {remoting.Error} */ |
var error = |
remoting.Error.fromHttpStatus(/** @type {number} */ (xhr.status)); |
- if (error == remoting.Error.NONE) { |
+ if (error.tag == remoting.Error.Tag.NONE) { |
onDone(); |
} else { |
onError(error); |