⬆️ Upgrade to latest responsable-errors
This commit is contained in:
parent
4c635ffbe8
commit
b1e4c28dfe
4 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
|
@ -54,7 +54,7 @@ func (s *MiddlewareTestSuite) TestNoError() {
|
|||
s.do()
|
||||
s.Assert().Equal("", s.w.Body.String())
|
||||
}
|
||||
|
||||
|
||||
func (s *MiddlewareTestSuite) TestResError() {
|
||||
msg := "I can't find it"
|
||||
err := rErrors.NewNotFound(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue