We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01d1fa6 commit dd9e22aCopy full SHA for dd9e22a
modules/git/repo_attribute.go
@@ -205,7 +205,9 @@ func (c *CheckAttributeReader) Run() error {
205
return nil
206
},
207
})
208
- if err != nil && c.ctx.Err() != err && err.Error() != "signal: killed" {
+ if err != nil && // If there is an error we need to return but:
209
+ c.ctx.Err() != err && // 1. We should not pass up error due to the context being cancelled
210
+ err.Error() != "signal: killed" { // 2. We should not pass up errors due to the program being killed
211
return fmt.Errorf("failed to run attr-check. Error: %w\nStderr: %s", err, stdErr.String())
212
}
213
0 commit comments