MCPcopy Index your code
hub / github.com/plotly/dash / handleAsyncError

Function handleAsyncError

dash/dash-renderer/src/actions/index.js:193–204  ·  view source on GitHub ↗
(err, message, dispatch)

Source from the content-addressed store, hash-verified

191}
192
193export function handleAsyncError(err, message, dispatch) {
194 // Handle html error responses
195 if (err && typeof err.text === 'function') {
196 err.text().then(text => {
197 const error = {message, html: text};
198 dispatch(onError({type: 'backEnd', error}));
199 });
200 } else {
201 const error = err instanceof Error ? err : {message, html: err};
202 dispatch(onError({type: 'backEnd', error}));
203 }
204}

Callers 2

apiThunkFunction · 0.90

Calls 1

textMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…