diff options
author | Tom Quirk <tquirk@gitlab.com> | 2020-11-27 02:16:06 +0300 |
---|---|---|
committer | Tom Quirk <tquirk@gitlab.com> | 2020-11-27 02:39:54 +0300 |
commit | baf188cf6042bf17ee201067bd3adc077246f414 (patch) | |
tree | f8400818f4a2484135109959e6a3e8f12d13426f /main.go | |
parent | 84abda0e2cc2d47078d20abc1dad338402060b90 (diff) |
De-capitalise all fm.Errorf messagesstandardize-error-msg-formatting
Conform to the official CodeReviewComments guide,
which says:
Error strings should not be capitalized (unless beginning with proper nouns or acronyms)
or end with punctuation,
since they are usually printed following other context.
That is, use fmt.Errorf("something bad") not fmt.Errorf("Something bad")
Source:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ func setGitLabAPISecretKey(secretFile string, config *appConfig) { } if secretLength != 32 { - log.WithError(fmt.Errorf("Expected 32 bytes GitLab API secret but got %d bytes", secretLength)).Fatal("Failed to decode GitLab API secret") + log.WithError(fmt.Errorf("expected 32 bytes GitLab API secret but got %d bytes", secretLength)).Fatal("Failed to decode GitLab API secret") } config.GitLabAPISecretKey = decoded |