From: Aleksander Ɓukasz Date: Tue, 31 Dec 2013 10:36:13 +0000 (+0100) Subject: logging: fix in ravenjs handler X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/875bfe398124d8aabd01787b99fd53d5c64bb59e?ds=sidebyside;hp=-c logging: fix in ravenjs handler --- 875bfe398124d8aabd01787b99fd53d5c64bb59e diff --git a/src/fnpjs/logging/handlers.js b/src/fnpjs/logging/handlers.js index cc2eab1..7142101 100644 --- a/src/fnpjs/logging/handlers.js +++ b/src/fnpjs/logging/handlers.js @@ -22,7 +22,7 @@ return { ravenData.tags[key] = record.data[key]; }); - if(record.data.exception) { + if(record.data && record.data.exception) { window.Raven.captureException(record.data.exception, ravenData); } else { window.Raven.captureMessage(record.message, ravenData);