mirror of
https://github.com/grafana/grafana.git
synced 2026-08-11 13:44:59 -05:00
Errors: Make errors the same in dev as prod (#77366)
When running in dev mode, error messages would contain an additional "error" property alongside "message". Since this causes confusion, that has been removed and now error messages are the same both modes (using "message").
This commit is contained in:
@@ -128,7 +128,7 @@ func TestCallResource(t *testing.T) {
|
||||
_, err = io.Copy(body, resp.Body)
|
||||
require.NoError(t, err)
|
||||
|
||||
expectedBody := `{ "error": "something went wrong", "message": "Failed to call resource", "traceID": "" }`
|
||||
expectedBody := `{ "message": "Failed to call resource", "traceID": "" }`
|
||||
require.JSONEq(t, expectedBody, body.String())
|
||||
require.NoError(t, resp.Body.Close())
|
||||
require.Equal(t, 500, resp.StatusCode)
|
||||
|
||||
Reference in New Issue
Block a user