Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Log ex.stack instead of ex for better debug output on supporting plat…
Browse files Browse the repository at this point in the history
…forms, fixes #27
  • Loading branch information
Scott J. Miles committed Sep 11, 2013
1 parent 16f4758 commit ac26f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
},

Expand Down

0 comments on commit ac26f2a

Please sign in to comment.