Skip to content

Commit

Permalink
sync Tue Jan 2 00:16:34 CET 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Jan 1, 2018
1 parent 5e44c59 commit 9aa4431
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions violetear.go
Expand Up @@ -116,8 +116,6 @@ func (r *Router) Handle(path string, handler http.Handler, httpMethods ...string
if _, ok := r.dynamicRoutes[p]; !ok {
r.err = fmt.Errorf("[%s] not found, need to add it using AddRegex(%q, `your regex`", p, p)
return nil
//fmt.Fprintf(os.Stderr, "[%s] not found, need to add it using AddRegex(%q, `your regex`", p, p)
//os.Exit(1)
}
}
}
Expand Down Expand Up @@ -297,3 +295,8 @@ func (r *Router) splitPath(p string) []string {
}
return pathParts
}

// GetError returns an error resulted from building the route, if any.
func (r *Router) GetError() error {
return r.err
}

0 comments on commit 9aa4431

Please sign in to comment.