Archived
1
0

Uses more specific error when FindFileDir fails

This commit is contained in:
Jip J. Dekker 2016-03-17 17:41:18 +01:00
parent 30b7c3fee5
commit 310ebb319f

View File

@ -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"),
}
}