Print the full stack when message bus callback fails.

approved
#1

Print the full stack when message bus callback fails.

diff --git a/assets/message-bus.js b/assets/message-bus.js
index b9c2e4b..8ea3082 100644
--- a/assets/message-bus.js
+++ b/assets/message-bus.js
@@ -106,7 +106,7 @@
           }
           catch(e){
             if(console.log) {
-              console.log("MESSAGE BUS FAIL: callback " + callback.channel +  " caused exception " + e.message);
+              console.log("MESSAGE BUS FAIL: callback " + callback.channel +  " caused exception " + e.stack);
             }
           }
         }

GitHub sha: fff23115

1 Like
Approved #2