From e02560544b5f8ec2542aa221d3d29c29b8790706 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Fri, 24 Oct 2014 14:06:52 +0200 Subject: [PATCH] add utils.newPathErrorErr --- utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils.go b/utils.go index 8aae29d..2a0d1db 100644 --- a/utils.go +++ b/utils.go @@ -20,6 +20,10 @@ func newPathError(op string, path string, statusCode int) error { return &os.PathError{op, path, errors.New(fmt.Sprintf("%d", statusCode))} } +func newPathErrorErr(op string, path string, err error) error { + return &os.PathError{op, path, err} +} + func FixSlash(s string) string { if !strings.HasSuffix(s, "/") { s += "/"