diff --git a/plan/task/clientfilesystemread.go b/plan/task/clientfilesystemread.go index 3dc6a5e3..58933203 100644 --- a/plan/task/clientfilesystemread.go +++ b/plan/task/clientfilesystemread.go @@ -35,6 +35,8 @@ func (t clientFilesystemReadTask) PreRun(_ context.Context, pctx *plancontext.Co return fmt.Errorf("path %q is not a directory", path) case pi.IsDir() && !isFS: return fmt.Errorf("path %q cannot be a directory", path) + case err != nil: + return fmt.Errorf("path %q cannot be stat'd", path) } if plancontext.IsFSValue(v.Lookup("contents")) {