Actually useful error alerts.

This commit is contained in:
Nicolas Stepien 2012-03-02 22:31:53 +01:00
parent b090ad7347
commit 0f6d607902
2 changed files with 4 additions and 2 deletions

View File

@ -3890,7 +3890,9 @@
callback(node);
}
} catch (err) {
if (notify) alert(err.message);
if (notify) {
alert("4chan X error: " + err.message + "\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n" + err.stack);
}
}
}
},

View File

@ -3195,7 +3195,7 @@ Main =
try
callback node for node in nodes
catch err
alert err.message if notify
alert "4chan X error: #{err.message}\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n#{err.stack}" if notify
return
observer: (mutations) ->
nodes = []