Skip to content

Commit ed563a8

Browse files
committed
Don't show context cancelled errors in attribute reader
Fix #18997 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 95c8d53 commit ed563a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_attribute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (c *CheckAttributeReader) Run() error {
205205
return nil
206206
},
207207
})
208-
if err != nil && c.ctx.Err() != nil && err.Error() != "signal: killed" {
208+
if err != nil && c.ctx.Err() != err && err.Error() != "signal: killed" {
209209
return fmt.Errorf("failed to run attr-check. Error: %w\nStderr: %s", err, stdErr.String())
210210
}
211211
return nil

0 commit comments

Comments
 (0)