Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: remoting/webapp/crd/js/host_installer.js

Issue 955283002: Converted remoting.Error from an enum to a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/crd/js/host_install_dialog.js ('k') | remoting/webapp/crd/js/host_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/host_installer.js
diff --git a/remoting/webapp/crd/js/host_installer.js b/remoting/webapp/crd/js/host_installer.js
index 9a97e6ff64c9f40d12de5fe7dac80e8b62cc82f5..3ff1013bbba13d8a5c64ab9461298be0b4e63f28 100644
--- a/remoting/webapp/crd/js/host_installer.js
+++ b/remoting/webapp/crd/js/host_installer.js
@@ -106,7 +106,7 @@ remoting.HostInstaller.prototype.download = function() {
var hostPackageUrl = HOST_DOWNLOAD_URLS[navigator.platform];
if (hostPackageUrl === undefined) {
console.error("Tried to install host on " + navigator.platform);
- throw new Error(remoting.Error.UNEXPECTED);
+ throw new Error(remoting.Error.unexpected());
}
// Start downloading the package.
« no previous file with comments | « remoting/webapp/crd/js/host_install_dialog.js ('k') | remoting/webapp/crd/js/host_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698