Commit a637c27
fix(scan): isolate detect() exceptions and surface unknown-provider count
- Wrap detect() in try/catch inside resolveProvider so a buggy community
provider can't crash the entire scan (R1). Mirrors the catch-and-skip
pattern the loader already applies to failed provider imports.
- Append unknown-provider count to the scan summary line so the totals
reconcile when a tracked_companies entry references a non-loaded
provider id (R2). Closes an accounting gap the refactor itself
introduced.
R3 (AbortError → "timed out after Xms") deferred to a follow-up
hardening PR — pre-refactor fetchJson surfaced AbortError the same
opaque way, so it's a behavior improvement rather than a refactor.
Refs: santifer#521, santifer#599
Co-Authored-By: Luis Johan <luis.j.lithgow@gmail.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 35ded27 commit a637c27
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
263 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
264 | 270 | | |
265 | 271 | | |
266 | 272 | | |
| |||
0 commit comments