MCPcopy
hub / github.com/sveltejs/svelte / handle_error

Function handle_error

packages/svelte/src/internal/client/reactivity/async.js:297–303  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

295
296 /** @param {any} error */
297 const handle_error = (error) => {
298 errored = { error }; // wrap in object in case a promise rejects with a falsy value
299
300 if (!aborted(active)) {
301 invoke_error_boundary(error, active);
302 }
303 };
304
305 var promise = Promise.resolve(thunks[0]()).catch(handle_error);
306

Callers 1

#runMethod · 0.90

Calls 2

abortedFunction · 0.90
invoke_error_boundaryFunction · 0.90

Tested by

no test coverage detected