diff --git a/helpers/file_utils.go b/helpers/file_utils.go index c06595a..fe67ba6 100644 --- a/helpers/file_utils.go +++ b/helpers/file_utils.go @@ -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"), + } }