better error message in the API when deployment key is invalid
This commit is contained in:
Родитель
c0c8702441
Коммит
2677df5dd9
|
@ -7,7 +7,9 @@ module TDev {
|
|||
export function localProxyHandler() {
|
||||
return function (cmd, data) {
|
||||
if (cmd == "shell") return LocalShell.runShellAsync(data)
|
||||
else if (cmd == "socket") return Promise.as({ url: mgmtUrl("").replace(/^http/, "ws") })
|
||||
else if (cmd == "socket")
|
||||
return LocalShell.mgmtRequestAsync("stats")
|
||||
.then(() => { return { url: mgmtUrl("").replace(/^http/, "ws") } })
|
||||
else return LocalShell.mgmtRequestAsync("plugin/" + cmd, data)
|
||||
};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче