1. Atlassian
  2. Atlassian Connect
  3. atlassian-connect-express

Commits

Bob Bergman  committed c538900

Handle Strings as well as Errors

  • Participants
  • Parent commits 83ababb
  • Branches master

Comments (0)

Files changed (1)

File lib/index.js

View file
  • Ignore whitespace
 function Addon(app, opts, logger) {
 
     RSVP.configure('onerror', function (err) {
-        logger.error('Unhandled error:', err.stack);
+        logger.error('Unhandled error:', err.stack || err);
     });
 
     var self = this;