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)