diff --git a/frontend/app/map/messages/messages.js b/frontend/app/map/messages/messages.js index bc469bc6..58f5771d 100644 --- a/frontend/app/map/messages/messages.js +++ b/frontend/app/map/messages/messages.js @@ -13,7 +13,7 @@ showMessage : function(type, message, buttons, lifetime, onclose) { var messageObj = { type: type, - message: message, + message: message instanceof Error ? message.name + ": " + message.message : message, buttons: buttons, close: function(callOnClose) { var idx = scope.messages.indexOf(messageObj);