Index: remoting/webapp/crd/js/host_list_api_impl.js |
diff --git a/remoting/webapp/crd/js/host_list_api_impl.js b/remoting/webapp/crd/js/host_list_api_impl.js |
index 2a9df2699d5c082db9fdb2bc1a96ca97a47c5bdd..bf5e25c8dbd3a27c7153e4939510ec97280d2018 100644 |
--- a/remoting/webapp/crd/js/host_list_api_impl.js |
+++ b/remoting/webapp/crd/js/host_list_api_impl.js |
@@ -112,7 +112,7 @@ remoting.HostListApiImpl.prototype.parseHostListResponse_ = |
(base.jsonParseSafe(xhr.responseText)); |
if (!response || !response.data) { |
console.error('Invalid "hosts" response from server.'); |
- onError(remoting.Error.UNEXPECTED); |
+ onError(remoting.Error.unexpected()); |
} else { |
var items = response.data.items || []; |
var hosts = items.map( |