[whatwg/fetch] how can i implement a global Interceptor of error with fetchjs (#327)

how can i implement a global Interceptor of error?
$.setInterceptor((promiseChain)=>{
  promiseChain.cancel();
})
$.get().then(data=>{
  // if cancel the control flow,  this block can not be exec if
})


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/327

Received on Friday, 24 June 2016 11:18:36 UTC