Skip to content

Commit 83f1a04

Browse files
committed
no configuration file provided should be a ErrNotFound
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent ae73362 commit 83f1a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func getConfigPathsFromOptions(options *ProjectOptions) ([]string, error) {
374374
if len(options.ConfigPaths) != 0 {
375375
return absolutePaths(options.ConfigPaths)
376376
}
377-
return nil, errors.New("no configuration file provided")
377+
return nil, errors.Wrap(errdefs.ErrNotFound, "no configuration file provided")
378378
}
379379

380380
func findFiles(names []string, pwd string) []string {

0 commit comments

Comments
 (0)