Skip to content

Commit

Permalink
Remove capital letter for error in Temporary Error
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumerose authored and praveenkumar committed Sep 22, 2020
1 parent 740abdf commit d47f5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/crc/errors/multierror.go
Expand Up @@ -36,7 +36,7 @@ type RetriableError struct {
}

func (r RetriableError) Error() string {
return "Temporary Error: " + r.Err.Error()
return "Temporary error: " + r.Err.Error()
}

// RetryAfter retries a number of attempts, after a delay
Expand Down
2 changes: 1 addition & 1 deletion pkg/crc/errors/multierror_test.go
Expand Up @@ -33,7 +33,7 @@ func TestRetryAfterMaxAttempts(t *testing.T) {
calls++
return &RetriableError{Err: errors.New("failed")}
}, 0)
assert.EqualError(t, ret, "Temporary Error: failed\nTemporary Error: failed\nTemporary Error: failed")
assert.EqualError(t, ret, "Temporary error: failed\nTemporary error: failed\nTemporary error: failed")
assert.Equal(t, 3, calls)
}

Expand Down

0 comments on commit d47f5e7

Please sign in to comment.