mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Azure: Fixing a confusing variable name (#97598)
Fixing a confusing variable name
This commit is contained in:
parent
85392de2e7
commit
448d87157c
@ -121,8 +121,8 @@ func writeErrorResponse(rw http.ResponseWriter, code int, msg string) {
|
|||||||
errorBody := map[string]string{
|
errorBody := map[string]string{
|
||||||
"error": msg,
|
"error": msg,
|
||||||
}
|
}
|
||||||
json, _ := json.Marshal(errorBody)
|
jsonRes, _ := json.Marshal(errorBody)
|
||||||
_, err := rw.Write(json)
|
_, err := rw.Write(jsonRes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
backend.Logger.Error("Unable to write HTTP response", "error", err)
|
backend.Logger.Error("Unable to write HTTP response", "error", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user