diff --git a/client.go b/client.go index a3ca66b561e35ea50d28dfbc54484b5f66493abe..41d42f19a162bfff6e38d8f2470fb45881037b50 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)