mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add errutils helpers (#73577)
Add helpers for the errutil package in favor of errutil.NewBase.
This commit is contained in:
committed by
GitHub
parent
1cc226e689
commit
040b7d2571
@@ -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