Skip to content

Commit

Permalink
Update panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
vardius committed Feb 2, 2019
1 parent b64d8e3 commit ee3f241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ee3f241

Please sign in to comment.