mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +9685 from c9/tweak-error
[Trivial] Fix ugly error
This commit is contained in:
commit
bc22bb0913
@ -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;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user