From ac26f2a56758e9b5240b773c6f7150feeeeeb3fe Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Wed, 11 Sep 2013 13:03:50 -0700 Subject: [PATCH] Log ex.stack instead of ex for better debug output on supporting platforms, fixes #27 --- src/observe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observe.js b/src/observe.js index 4cc88d7..07d6829 100644 --- a/src/observe.js +++ b/src/observe.js @@ -364,7 +364,7 @@ this.callback.apply(this.target, args); } catch (ex) { Observer._errorThrownDuringCallback = true; - console.error('Exception caught during observer callback: ' + ex); + console.error('Exception caught during observer callback: ' + (ex.stack || ex)); } },