Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Sep 10, 2022
1 parent 0f69832 commit 3a29b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/validate/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
var ErrHasValidationErrors = errors.New("schema has validation errors")

func PrintSummary(output string, hasErrors bool) {

switch output {
case "text":
if hasErrors {
Expand Down
3 changes: 2 additions & 1 deletion internal/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var (
ErrEmptyAppName = errors.New("app name cannot be empty")
ErrEmptyCommands = errors.New("app must have at least one command")
ErrNoCommandSpecified = errors.New("app command was not specified")
ErrCommandNotFound = errors.New("app command not found")
)

func NewApp(
Expand Down Expand Up @@ -64,5 +65,5 @@ func (a *App) Run() error {
}
}

return fmt.Errorf("command '%s' not found", args[0])
return fmt.Errorf("'%s': %w", args[0], ErrCommandNotFound)
}

0 comments on commit 3a29b79

Please sign in to comment.