diff --git a/assets/js/app.js b/assets/js/app.js index a883f208..660bee3c 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -25,7 +25,7 @@ window.App = (function () { response = {message: jqXHR.responseText}; // String response } - if (!response) { + if (!response || !response.message) { return; } @@ -37,7 +37,7 @@ window.App = (function () { 'html': [ $('
', { 'class': 'card-body', - 'html': response.message || '→ No error information provided.' + 'html': response.message }) ] }).appendTo('#message-box');