From b3aad03a47e4cb070ca11c25326c13a6d9c00482 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 10 Jan 2025 08:25:08 +1100 Subject: [PATCH] add error to panic log for an invalid proxy url Signed-off-by: James Lamb --- syft/pkg/cataloger/rust/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syft/pkg/cataloger/rust/config.go b/syft/pkg/cataloger/rust/config.go index c6dea10fc74..d9ec4fc5c88 100644 --- a/syft/pkg/cataloger/rust/config.go +++ b/syft/pkg/cataloger/rust/config.go @@ -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