mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
return 400 if user input error
This commit is contained in:
@@ -52,7 +52,7 @@ func QueryMetrics(c *m.ReqContext, reqDto dtos.MetricRequest) Response {
|
||||
if res.Error != nil {
|
||||
res.ErrorString = res.Error.Error()
|
||||
resp.Message = res.ErrorString
|
||||
statusCode = 500
|
||||
statusCode = 400
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user