Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Quirk <tquirk@gitlab.com>2020-11-27 02:16:06 +0300
committerTom Quirk <tquirk@gitlab.com>2020-11-27 02:39:54 +0300
commitbaf188cf6042bf17ee201067bd3adc077246f414 (patch)
treef8400818f4a2484135109959e6a3e8f12d13426f /main.go
parent84abda0e2cc2d47078d20abc1dad338402060b90 (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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7defd281..95805b25 100644
--- a/main.go
+++ b/main.go
@@ -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