logging: fix in ravenjs handler
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 31 Dec 2013 10:36:13 +0000 (11:36 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 31 Dec 2013 10:36:13 +0000 (11:36 +0100)
src/fnpjs/logging/handlers.js

index cc2eab1..7142101 100644 (file)
@@ -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);