Skip to content

Commit

Permalink
add error to panic log for an invalid proxy url
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmystewpot committed Jan 9, 2025
1 parent 7141c1f commit dc11cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/rust/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c CatalogerConfig) WithProxy(input string) CatalogerConfig {
proxy, err := url.Parse(input)
fmt.Println(proxy, err)
if err != nil {
log.Errorf("rust cataloger configuration includes invalid proxy url: %s", input)
log.Errorf("rust cataloger configuration includes invalid proxy url: %s with error: %s", input, err)
panic(err)
}
c.proxyURL = proxy
Expand Down

0 comments on commit dc11cd4

Please sign in to comment.