acceptable promise pattern for 'LOUD' errors?

前端 未结 2 1327
天命终不由人
天命终不由人 2020-12-11 08:10

I\'m using the RSVP library distributed inside Ember.js and I\'m trying to figure out the correct pattern for reporting fatal errors inside a promise -- particularly I want

2条回答
  •  感情败类
    2020-12-11 08:39

    New answer --

    In this video panel discussion with ember core developers, at one point the developers all share one debugging tip:

    http://www.youtube.com/watch?v=L9OOMygo1HI

    Tom Dale specifically addresses the issue of swallowed exceptions inside promises and recommends use of the new Ember.RSVP.onerror feature for debugging errors inside promises which would have otherwise gone unreported because no rejection handler was attached.

    I think that is the correct answer to my question -- although I don't yet know how to use the RSVP.onerror callback (or in which ember releases its available) ...

提交回复
热议问题