Skip to content

Commit

Permalink
Remove redundant "Error" keyword
Browse files Browse the repository at this point in the history
The standard error handler will automatically prepend "Error:".
  • Loading branch information
Piccirello committed May 6, 2020
1 parent c7135eb commit 7cbd5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var settingsUpdateCmd = &cobra.Command{
name := cmd.Flag("name").Value.String()
email := cmd.Flag("email").Value.String()
if name == "" && email == "" {
return errors.New("Error: command needs flag --name or --email")
return errors.New("command needs flag --name or --email")
}

return nil
Expand Down

0 comments on commit 7cbd5a6

Please sign in to comment.