Skip to content

Commit

Permalink
Make error log easier to read (#126)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:

Fixes #

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
-->
```release-note
NONE
```

This PR was merged by Kapetanios.
  • Loading branch information
nakabonne committed Jun 22, 2020
1 parent e191187 commit 211ca97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/piped/executor/analysis/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (a *analyzer) run(ctx context.Context) error {
}

if failureCount > a.failureLimit {
return fmt.Errorf("anslysis '%s' by %s failed because the failure number exceeded the failure limit %d", a.id, a.providerType, a.failureLimit)
return fmt.Errorf("anslysis '%s' by %s failed because the failure number exceeded %d, the failure limit", a.id, a.providerType, a.failureLimit)
}
case <-ctx.Done():
return nil
Expand Down

0 comments on commit 211ca97

Please sign in to comment.