Commit a4069a3
fix(cargo): propagate timeout error with actionable message (guacsec#429)
## Summary
- Propagates timeout and I/O errors as `RuntimeException` instead of
silently logging them, ensuring callers are notified of failures
- Adds system property hint (`-Dtrustify.cargo.timeout.seconds=N`) to
timeout error message for easy adjustment
Implements [TC-4165](https://redhat.atlassian.net/browse/TC-4165)
## Test plan
- [x] All 29 existing Cargo tests pass (`CargoProviderTest`,
`CargoSbomTest`)
- [x] Timeout error message includes system property hint
- [x] Errors propagate correctly through `addDependencies()` →
`createSbom()` call chain
- [ ] CI integration tests pass on cargo-stable scenario
🤖 Generated with [Claude Code](https://claude.com/claude-code)
[TC-4165]:
https://redhat.atlassian.net/browse/TC-4165?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent cddf65b commit a4069a3
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
438 | 439 | | |
439 | 440 | | |
440 | 441 | | |
441 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
442 | 446 | | |
443 | 447 | | |
444 | 448 | | |
| |||
0 commit comments