From bc3d306dd73037a85c4180181d9c451a881119b4 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 7 Jan 2022 11:50:19 +0100 Subject: [PATCH] cmd/syncthing: Error capitalization --- cmd/syncthing/generate/generate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/syncthing/generate/generate.go b/cmd/syncthing/generate/generate.go index 4df7c3d46..b3df5fe98 100644 --- a/cmd/syncthing/generate/generate.go +++ b/cmd/syncthing/generate/generate.go @@ -53,13 +53,13 @@ func (c *CLI) Run() error { reader := bufio.NewReader(os.Stdin) password, _, err := reader.ReadLine() if err != nil { - return fmt.Errorf("Failed reading GUI password: %w", err) + return fmt.Errorf("failed reading GUI password: %w", err) } c.GUIPassword = string(password) } if err := Generate(c.ConfDir, c.GUIUser, c.GUIPassword, c.NoDefaultFolder, c.SkipPortProbing); err != nil { - return fmt.Errorf("Failed to generate config and keys: %w", err) + return fmt.Errorf("failed to generate config and keys: %w", err) } return nil } @@ -129,7 +129,7 @@ func updateGUIAuthentication(guiCfg *config.GUIConfiguration, guiUser, guiPasswo if guiPassword != "" && guiCfg.Password != guiPassword { if err := guiCfg.HashAndSetPassword(guiPassword); err != nil { - return fmt.Errorf("Failed to set GUI authentication password: %w", err) + return fmt.Errorf("failed to set GUI authentication password: %w", err) } log.Println("Updated GUI authentication password.") }