Rule parsing error.
This commit is contained in:
parent
31f92001e2
commit
ec86149b1e
2 changed files with 19 additions and 4 deletions
|
@ -269,6 +269,9 @@ func (r *Rules) Parse(expression string) (*mux.Route, error) {
|
|||
if r.err != nil {
|
||||
return r.err
|
||||
}
|
||||
if resultRoute == nil {
|
||||
return fmt.Errorf("invalid expression: %s", expression)
|
||||
}
|
||||
if resultRoute.GetError() != nil {
|
||||
return resultRoute.GetError()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue