mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Chore: Add errutils helpers (#73577)
Add helpers for the errutil package in favor of errutil.NewBase.
This commit is contained in:
@@ -55,7 +55,7 @@ func TestErrors(t *testing.T) {
|
||||
{
|
||||
name: "grafana error with fallback to other error",
|
||||
|
||||
err: errutil.NewBase(errutil.StatusTimeout, "thing.timeout").Errorf("whoops"),
|
||||
err: errutil.Timeout("thing.timeout").Errorf("whoops"),
|
||||
statusCode: http.StatusBadRequest,
|
||||
message: genericErrorMessage,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user