move other errors to utils package

This commit is contained in:
Nicola Murino
2021-06-19 13:06:01 +02:00
parent f19937b715
commit c1b862394d
13 changed files with 79 additions and 73 deletions

View File

@@ -477,7 +477,7 @@ func (u *User) getForbiddenSFTPSelfUsers(username string) ([]string, error) {
}
return forbiddens, nil
}
if _, ok := err.(*RecordNotFoundError); !ok {
if _, ok := err.(*utils.RecordNotFoundError); !ok {
return nil, err
}