mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
move other errors to utils package
This commit is contained in:
@@ -298,7 +298,7 @@ func TestShouldBind(t *testing.T) {
|
||||
|
||||
func TestGetRespStatus(t *testing.T) {
|
||||
var err error
|
||||
err = &dataprovider.MethodDisabledError{}
|
||||
err = utils.NewMethodDisabledError("")
|
||||
respStatus := getRespStatus(err)
|
||||
assert.Equal(t, http.StatusForbidden, respStatus)
|
||||
err = fmt.Errorf("generic error")
|
||||
|
||||
Reference in New Issue
Block a user