From 30e02600b490ecd2976e72554cb0a3ffd7dcde3f Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Wed, 30 Jul 2014 16:51:12 -0700 Subject: [PATCH] Add guard I forgot to add in 693b78001c83d48ef31ea0fe432327f68ee16023 (Thanks @justinsb for noticing this!) --- packages/livedata/livedata_server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/livedata/livedata_server.js b/packages/livedata/livedata_server.js index d845232113..e7b00b6fde 100644 --- a/packages/livedata/livedata_server.js +++ b/packages/livedata/livedata_server.js @@ -1460,8 +1460,10 @@ var wrapInternalException = function (exception, context) { // server log if (!exception.expected) { Meteor._debug("Exception " + context, exception.stack); - Meteor._debug("Sanitized and reported to the client as:", exception.sanitizedError.message); - Meteor._debug(); + if (exception.sanitizedError) { + Meteor._debug("Sanitized and reported to the client as:", exception.sanitizedError.message); + Meteor._debug(); + } } // Did the error contain more details that could have been useful if caught in