From 9258cbf02eb5bbdff9b4aa5f84cba8080642e66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tanguy=20=E2=A7=93=20Herrmann?= Date: Tue, 5 Apr 2022 13:32:17 +0200 Subject: [PATCH] fix: wrap the error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tanguy ⧓ Herrmann --- plan/task/clientfilesystemread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan/task/clientfilesystemread.go b/plan/task/clientfilesystemread.go index 58933203..83a6d1e3 100644 --- a/plan/task/clientfilesystemread.go +++ b/plan/task/clientfilesystemread.go @@ -36,7 +36,7 @@ func (t clientFilesystemReadTask) PreRun(_ context.Context, pctx *plancontext.Co 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) + return fmt.Errorf("path %q cannot be stat'd: %w", path, err) } if plancontext.IsFSValue(v.Lookup("contents")) {