Add config detail to errors
michaelleeallen opened this issue · comments
When calling next(error)
we should place the route/service details in the error so that the calling app can have more information about which route/service actually failed.
Something like:
...
.catch((e) => {
e.routeInfo = {
uri: requestConfig.uri,
method: requestConfig.method
};
next(e);
});