From 875bfe398124d8aabd01787b99fd53d5c64bb59e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 31 Dec 2013 11:36:13 +0100 Subject: [PATCH 1/1] logging: fix in ravenjs handler --- src/fnpjs/logging/handlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1