From 310ebb319fb1b7c9f85a560ae60e4c0a063e0942 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Thu, 17 Mar 2016 17:41:18 +0100 Subject: [PATCH] Uses more specific error when FindFileDir fails --- helpers/file_utils.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"), + } }