Netflix / falcor

A JavaScript library for efficient data fetching

Home Page:http://netflix.github.io/falcor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Missing paths to MaxRetriesExceededError

jhusain opened this issue · comments

One of the most cryptic errors in Falcor is the MaxRetriesExceededError. This error usually occurs when the server neglects to send back a value for a requested path. The ergonomics of this error could be improved significantly by simply including the set of missing paths that the model is unable to find in the error itself.

var error = new MaxRetriesExceededError(missingPaths);
console.log (error.missingPaths);

@sdesai

Fixed. #874