[wp-trac] [WordPress Trac] #39314: WP-API Backbone Client: buildModelGetter fails to reject deferred on fetch error

WordPress Trac noreply at wordpress.org
Sun Dec 18 15:40:29 UTC 2016


#39314: WP-API Backbone Client: buildModelGetter fails to reject deferred on fetch
error
---------------------------------------------+-----------------------------
 Reporter:  westonruter                      |       Owner:
     Type:  defect (bug)                     |  adamsilverstein
 Priority:  normal                           |      Status:  assigned
Component:  REST API                         |   Milestone:  4.7.1
 Severity:  normal                           |     Version:  4.7
 Keywords:  has-patch has-unit-tests commit  |  Resolution:
                                             |     Focuses:
---------------------------------------------+-----------------------------

Comment (by adamsilverstein):

 In [attachment:39314.diff] :

 Ensure that when a helper method's underlying fetch call fails, reject
 gets called on the promise returned by the helper method. Enables better
 error handling.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39314#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list