Properly display Error objects in messages

pull/54/merge
Candid Dauth 2016-10-20 13:28:40 +03:00
rodzic f3859374b9
commit fd23a1aee4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);