From f1f24f1bc37c3fc54b847fba93e281319ed77f7d Mon Sep 17 00:00:00 2001 From: Lennart kats Date: Fri, 2 Oct 2015 08:28:35 +0000 Subject: [PATCH] Fix +9672 ugly error --- plugins/c9.vfs.client/vfs_client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/c9.vfs.client/vfs_client.js b/plugins/c9.vfs.client/vfs_client.js index fbeb8195..f03bb749 100644 --- a/plugins/c9.vfs.client/vfs_client.js +++ b/plugins/c9.vfs.client/vfs_client.js @@ -246,6 +246,8 @@ define(function(require, exports, module) { function showVfsError(err) { switch (err.action) { case "dashboard": + if (/Permission denied \(public key/.test(err.message)) + err.message = "SSH permission denied. Please review your workspace configuration."; return showAlert("Workspace Error", "Unable to access your workspace", err.message, function() { window.location = dashboardUrl; });