(err, errback)
| 527 | } |
| 528 | |
| 529 | function onError(err, errback) { |
| 530 | var ids = err.requireModules, |
| 531 | notified = false; |
| 532 | |
| 533 | if (errback) { |
| 534 | errback(err); |
| 535 | } else { |
| 536 | each(ids, function (id) { |
| 537 | var mod = getOwn(registry, id); |
| 538 | if (mod) { |
| 539 | //Set error on module, so it skips timeout checks. |
| 540 | mod.error = err; |
| 541 | if (mod.events.error) { |
| 542 | notified = true; |
| 543 | mod.emit('error', err); |
| 544 | } |
| 545 | } |
| 546 | }); |
| 547 | |
| 548 | if (!notified) { |
| 549 | req.onError(err); |
| 550 | } |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | /** |
| 555 | * Internal method to transfer globalQueue items to this context's |
no test coverage detected
searching dependent graphs…