request-registry-errors
v0.12.2
Published
Helper to catch unhandled request-registry errors for logging or showing global notifications
Downloads
29
Readme
Request Registry Errors
Helper to catch unhandled errors for logging or showing global notifications.
⚠️ Does not support IE11
Getting started
npm install --save-dev registry-request-errors
Api
onUnhandledRequestRegistyError
The onUnhandledRequestRegistyError
is the main feature of this package.
It will be executed whenever a request-registry error was not handled
onUnhandledRequestRegistyError(({ response, responseContent }) => {
console.error('Request failed', response, responseContent);
});