Repository navigation
Commit c3091bd
committed
Improve error message for invalid Helm chart repository URLs
Wrap the errors from CacheIndex() and LoadFromPath() in reconcileSource
with a helm-CLI-style message that includes the configured repository URL.
When the index cannot be fetched or fails to parse (e.g. server returns
HTML instead of YAML), the user now sees:
looks like "https://example.com" is not a valid chart repository or
cannot be reached: <underlying error>
instead of the cryptic YAML parse error or generic fetch failure.
Fixes #654
Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>1 parent 524cf24 commit c3091bd
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
0 commit comments