Fix error formatting based on best practices from Code Review Comments

Signed-off-by: CodeLingo Bot <bot@codelingo.io>
This commit is contained in:
CodeLingo Bot 2019-02-05 05:45:16 +00:00
parent 7547e83b2d
commit 4eb5e0aeba
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ func checkLackFiles(expected, got []string) error {
} }
} }
if len(lacks) > 0 { if len(lacks) > 0 {
return fmt.Errorf("Lack %v file(s): %v", len(lacks), lacks) return fmt.Errorf("lack %v file(s): %v", len(lacks), lacks)
} }
return nil return nil
} }

View file

@ -674,7 +674,7 @@ func (c *Command) ArgsLenAtDash() int {
func (c *Command) execute(a []string) (err error) { func (c *Command) execute(a []string) (err error) {
if c == nil { if c == nil {
return fmt.Errorf("Called Execute() on a nil Command") return fmt.Errorf("called Execute() on a nil Command")
} }
if len(c.Deprecated) > 0 { if len(c.Deprecated) > 0 {