Skip to content

Commit

Permalink
fix: error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Apr 14, 2022
1 parent c9c1d57 commit 5e13d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func findFiles(globs []string) ([]file, error) {
return files, err
}
if len(matches) == 0 {
multierror.Append(rerr, fmt.Errorf("no matches found: %s", glob))
rerr = multierror.Append(rerr, fmt.Errorf("no matches found: %s", glob))
}

for _, match := range matches {
Expand Down

0 comments on commit 5e13d88

Please sign in to comment.