• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iTowns / itowns / 23500884659

24 Mar 2026 04:35PM UTC coverage: 87.727% (-0.5%) from 88.182%
23500884659

Pull #2609

github

web-flow
Merge 06e93474d into e3f0b8bae
Pull Request #2609: Simplification of the loading process for rasterized tiles and mesh tiles

2709 of 3488 branches covered (77.67%)

Branch coverage included in aggregate %.

453 of 496 new or added lines in 20 files covered. (91.33%)

273 existing lines in 11 files now uncovered.

28185 of 31728 relevant lines covered (88.83%)

933.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

12.5
/packages/Main/src/Process/handlerNodeError.js
1
// max retry loading before changing the status to definitiveError
1✔
2
const MAX_RETRY = 4;
1✔
3

1✔
4
export default function handlingError(err, node, layer, targetLevel, view) {
1✔
UNCOV
5
    // Cancel error handling if the layer was removed between command scheduling and its execution
×
UNCOV
6
    if (!node.layerUpdateState[layer.id]) {
×
7
        return;
×
8
    }
×
UNCOV
9

×
UNCOV
10
    if (err.isCancelledCommandException) {
×
11
        node.layerUpdateState[layer.id].success();
×
UNCOV
12
    } else if (err instanceof SyntaxError) {
×
13
        node.layerUpdateState[layer.id].failure(0, true);
×
UNCOV
14
    } else {
×
UNCOV
15
        if (__DEBUG__) {
×
UNCOV
16
            if (layer.isColorLayer) {
×
UNCOV
17
                console.warn('Error in process color on layer', layer.id, ', node', node, err);
×
UNCOV
18
            } else if (layer.isElevationLayer) {
×
UNCOV
19
                console.warn('Error in process elevation on layer', layer.id, ', node', node, err);
×
UNCOV
20
            } else {
×
UNCOV
21
                console.warn('Error in process feature on layer', layer.id, ', node', node, err);
×
UNCOV
22
            }
×
UNCOV
23
        }
×
UNCOV
24
        const definitiveError = node.layerUpdateState[layer.id].errorCount > MAX_RETRY;
×
UNCOV
25
        node.layerUpdateState[layer.id].failure(Date.now(), definitiveError, { targetLevel });
×
UNCOV
26
        if (!definitiveError) {
×
UNCOV
27
            window.setTimeout(() => {
×
UNCOV
28
                view.notifyChange(node, false);
×
UNCOV
29
            }, node.layerUpdateState[layer.id].secondsUntilNextTry() * 1000);
×
UNCOV
30
        }
×
UNCOV
31
    }
×
UNCOV
32
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc