Commits

Bob Bergman committed c538900

Handle Strings as well as Errors

  • Participants
  • Parent commits 83ababb
  • Branches moar-better-rsvp-errors

Comments (0)

Files changed (1)

File lib/index.js

 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;