Show errorMessage

This commit is contained in:
Girish Ramakrishnan
2019-08-29 18:59:13 -07:00
parent 2796ad12fe
commit 6a08e08d7c
+2 -2
View File
@@ -221,7 +221,7 @@ app.filter('prettyAppMessage', function () {
if (app.health === HSTATES.UNHEALTHY) return 'The app is not responding to health checks. Check the logs for any error messages.';
}
var message = app.message;
var message = app.errorMessage;
if (message === 'ETRYAGAIN') return 'The DNS record for this location is not setup correctly. Please verify your DNS settings and repair this app.';
if (message === 'DNS Record already exists') return 'The DNS record for this location already exists. Cloudron does not remove existing DNS records. Manually remove the DNS record and then click on repair.';
return message;
@@ -231,7 +231,7 @@ app.filter('prettyAppMessage', function () {
// this appears as tool tip in app grid
app.filter('shortAppMessage', function () {
return function (app) {
var message = app.message;
var message = app.errorMessage;
if (message === 'ETRYAGAIN') return 'DNS record not setup correctly';
return message;
};