Skip to content
Snippets Groups Projects
Commit e43c0e59 authored by Joris's avatar Joris
Browse files

error handling

parent 3b5b8304
No related branches found
No related tags found
1 merge request!2Groupby overhaul
......@@ -17,6 +17,10 @@ func (s *Service) ConvertQuery(totalJSONQuery *entity.IncomingQueryJSON) (*strin
query, rest, isRest := checkForQueryCluster(queryJSON)
if query == nil {
return nil, errors.New("Invalid query")
}
if isRest {
fmt.Println("Rest:")
fmt.Println(rest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment