From ee3f241c174dc8f8bd21c24baa09ab01d4a5f812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Lorenz?= Date: Sat, 2 Feb 2019 12:11:45 +1100 Subject: [PATCH] Update panic message --- go.sum | 1 + router.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go.sum b/go.sum index c92524a..dbae00f 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,3 @@ +github.com/julienschmidt/httprouter v1.1.0 h1:7wLdtIiIpzOkC9u6sXOozpBauPdskj3ru4EI5MABq68= github.com/julienschmidt/httprouter v1.1.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/vardius/gorouter v3.0.4+incompatible/go.mod h1:3PK5w5Q7JQ1YN0phPKYEYb0bUV/okrR77H1jX56OVm4= diff --git a/router.go b/router.go index 48ba855..7ec1d8f 100644 --- a/router.go +++ b/router.go @@ -166,7 +166,7 @@ func (r *router) NotAllowed(notAllowed http.Handler) { func (r *router) ServeFiles(root http.FileSystem, path string, strip bool) { if path == "" { - panic("goapi.ServeFiles: empty path!") + panic("gorouter.ServeFiles: empty path!") } handler := http.FileServer(root) if strip {