From 5829fa86c8b8d903bdac97d6b1b6f6fe8ae02d16 Mon Sep 17 00:00:00 2001 From: Lev Zakharov Date: Fri, 19 Apr 2019 20:32:55 +0300 Subject: [PATCH] Fix rules checkPath error printing --- rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.go b/rules.go index abd68ac..de18510 100644 --- a/rules.go +++ b/rules.go @@ -641,7 +641,7 @@ func checkPath(pathName string) error { return fmt.Errorf("path %q too large", pathName) } if pathName[0] != '/' { - return fmt.Errorf("path %q must be absolute") + return fmt.Errorf("path %q must be absolute", pathName) } if strings.Contains(pathName, "..") { return fmt.Errorf("path %q cannot contain special directory values", pathName)