MCPcopy
hub / github.com/nbubna/store / onError

Function onError

libs/requirejs.js:517–540  ·  view source on GitHub ↗
(err, errback)

Source from the content-addressed store, hash-verified

515 }
516
517 function onError(err, errback) {
518 var ids = err.requireModules,
519 notified = false;
520
521 if (errback) {
522 errback(err);
523 } else {
524 each(ids, function (id) {
525 var mod = getOwn(registry, id);
526 if (mod) {
527 //Set error on module, so it skips timeout checks.
528 mod.error = err;
529 if (mod.events.error) {
530 notified = true;
531 mod.emit('error', err);
532 }
533 }
534 });
535
536 if (!notified) {
537 req.onError(err);
538 }
539 }
540 }
541
542 /**
543 * Internal method to transfer globalQueue items to this context's

Callers 4

checkLoadedFunction · 0.85
newContextFunction · 0.85
intakeDefinesFunction · 0.85
localRequireFunction · 0.85

Calls 2

getOwnFunction · 0.85
eachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…