Skip to content

Commit

Permalink
Check that errorObject is actually an object before sending it along …
Browse files Browse the repository at this point in the history
…to the logger
  • Loading branch information
gashcrumb committed Nov 27, 2013
1 parent 019575e commit b8246d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/lib/loggingInit.js
Expand Up @@ -223,7 +223,7 @@ Logger.setHandler(function(messages, context) {

// Catch uncaught exceptions and stuff so we can log them
window.onerror = function(msg, url, line, column, errorObject) {
if (errorObject) {
if (errorObject && isObject(errorObject)) {
Logger.get("Window").error(errorObject);
} else {
var href = ' (<a href="' + url + ':' + line + '">' + url + ':' + line;
Expand Down

0 comments on commit b8246d3

Please sign in to comment.