Uses more specific error when FindFileDir fails
This commit is contained in:
parent
30b7c3fee5
commit
310ebb319f
@ -65,5 +65,8 @@ func FindFileDir(file string) (string, error) {
|
||||
return path, nil
|
||||
}
|
||||
}
|
||||
return "", errors.New("directory not found")
|
||||
return "", &os.PathError{
|
||||
Path: wd,
|
||||
Err: errors.New("directory containing " + file + " not found"),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user