From 7c8baeecf500aa93afbf0872533832af894215ee Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 12 Aug 2023 18:55:00 +0400 Subject: [PATCH] Changed error messages in newPath(). --- httpr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpr.go b/httpr.go index 7c919d9..a14b6ed 100644 --- a/httpr.go +++ b/httpr.go @@ -13,11 +13,11 @@ type path []string // have more than 1 catch-all parameter. func newPath(path string) (path, error) { if path[0] != '/' { - return nil, errors.New("path should start with a slash (/) symbol") + return nil, errors.New("path should start with a slash symbol \"/\"") } if strings.Count(path, "*") > 1 { - return nil, errors.New("there can be only one catch-all (*) parameter in path") + return nil, errors.New("path can have only one catch-all parameter \"*\"") } path = strings.ReplaceAll(path, "//", "/")