From 631ec6120eb2b6349573014e9d1f5db33cd3d171 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 25 Mar 2012 23:03:54 -0700 Subject: [PATCH] Change "Connection does not exist" to more user-friendly error. --- guacamole-common-js/src/main/resources/tunnel.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/guacamole-common-js/src/main/resources/tunnel.js b/guacamole-common-js/src/main/resources/tunnel.js index 39709d864..87155ebe5 100644 --- a/guacamole-common-js/src/main/resources/tunnel.js +++ b/guacamole-common-js/src/main/resources/tunnel.js @@ -211,8 +211,20 @@ Guacamole.HTTPTunnel = function(tunnelURL) { if (status == 0) return "Disconnected"; if (status == 200) return "Success"; 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 if (status >= 500 && status <= 599) return "Server error";