mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Change "Connection does not exist" to more user-friendly error.
This commit is contained in:
@@ -211,8 +211,20 @@ Guacamole.HTTPTunnel = function(tunnelURL) {
|
|||||||
if (status == 0) return "Disconnected";
|
if (status == 0) return "Disconnected";
|
||||||
if (status == 200) return "Success";
|
if (status == 200) return "Success";
|
||||||
if (status == 403) return "Unauthorized";
|
if (status == 403) return "Unauthorized";
|
||||||
if (status == 404) return "Connection does not exist";
|
if (status == 404) return "Connection closed"; /* While it may be more
|
||||||
|
* accurate to say the
|
||||||
|
* connection does not
|
||||||
|
* exist, it is confusing
|
||||||
|
* to the user.
|
||||||
|
*
|
||||||
|
* In general, this error
|
||||||
|
* will only happen when
|
||||||
|
* the tunnel does not
|
||||||
|
* exist, which happens
|
||||||
|
* after the connection
|
||||||
|
* is closed and the
|
||||||
|
* tunnel is detached.
|
||||||
|
*/
|
||||||
// Internal server errors
|
// Internal server errors
|
||||||
if (status >= 500 && status <= 599) return "Server error";
|
if (status >= 500 && status <= 599) return "Server error";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user