Commit 2cb97888 authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Display correct error message when the client fails to establish P2P connection.

BUG=110844

Review URL: https://chromiumcodereview.appspot.com/9564025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124573 0039d316-1c4b-4281-b951-d872f2087c98
parent 697182bc
......@@ -139,6 +139,10 @@
"message": "The access code is invalid. Please try again.",
"description": "Error displayed if an invalid access code is entered."
},
"ERROR_NETWORK_FAILURE": {
"message": "Unable to reach the host. This is probably due to the configuration of the network you are using.",
"description": "Error displayed when the host is online, but we are unable to connect to it due to network configuration."
},
"ERROR_MISSING_PLUGIN": {
"message": "Some components required for Chromoting are missing. Please make sure you're running the latest version of Chromium and try again.",
"description": "Error displayed if the client plugin fails to load."
......
......@@ -247,7 +247,7 @@ function onClientStateChange_(oldState, newState) {
showConnectError_(remoting.Error.INCOMPATIBLE_PROTOCOL);
} else if (remoting.clientSession.error ==
remoting.ClientSession.ConnectionError.NETWORK_FAILURE) {
showConnectError_(remoting.Error.GENERIC);
showConnectError_(remoting.Error.NETWORK_FAILURE);
} else {
showConnectError_(remoting.Error.GENERIC);
}
......
......@@ -20,6 +20,7 @@ remoting.Error = {
HOST_IS_OFFLINE: /*i18n-content*/'ERROR_HOST_IS_OFFLINE',
INCOMPATIBLE_PROTOCOL: /*i18n-content*/'ERROR_INCOMPATIBLE_PROTOCOL',
BAD_PLUGIN_VERSION: /*i18n-content*/'ERROR_BAD_PLUGIN_VERSION',
NETWORK_FAILURE: /*i18n-content*/'ERROR_NETWORK_FAILURE',
GENERIC: /*i18n-content*/'ERROR_GENERIC',
UNEXPECTED: /*i18n-content*/'ERROR_UNEXPECTED',
SERVICE_UNAVAILABLE: /*i18n-content*/'ERROR_SERVICE_UNAVAILABLE'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment