From e7124c361d063a219509583954bbc20f91c11305 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 22 Mar 2025 20:06:25 +0000 Subject: [PATCH] Improve error messages --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index a3ca66b..41d42f1 100644 --- a/client.go +++ b/client.go @@ -74,7 +74,7 @@ func (c *ScanClient) UpdateContainer(ctx context.Context, cont *ContainerSummary }, &resp) cancel() if err != nil { - return false, err + return false, fmt.Errorf("failed to contact assetmon server: %w", err) } if len(resp.ScanImages) == 0 { @@ -94,7 +94,7 @@ func (c *ScanClient) FullUpdate(ctx context.Context, ctnrs []ContainerSummary) e }, &resp) cancel() if err != nil { - return err + return fmt.Errorf("failed to contact assetmon server: %w", err) } return c.processUpdateResponse(ctx, &resp) -- GitLab