1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-15 01:34:53 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-08-18 11:27:37 -07:00
parent 7fa42ab978
commit 18b9e23ace
6 changed files with 27 additions and 17 deletions

View File

@ -54,7 +54,7 @@ func NewRouter(e *Echo) *Router {
func (r *Router) Add(method, path string, h HandlerFunc, e *Echo) {
// Validate path
if path == "" {
e.logger.Fatal("path cannot be empty")
panic("echo: path cannot be empty")
}
if path[0] != '/' {
path = "/" + path