diff --git a/src/js/client.js b/src/js/client.js index 852d251c4..7c48caf28 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -189,6 +189,13 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout message = error; } + // give more info in case the error was a request which failed with empty response body, + // this happens mostly if the box crashes + if (message === 'Empty message or object') { + message = 'Got empty response. Click to check the server logs.' + action = action || '/logs.html?id=box'; + } + this.notify('Cloudron Error', message, true, 'error', action); };