Fix error naming

This commit is contained in:
Daniel
2024-04-17 17:01:37 +02:00
parent a457ac4245
commit cdabffafcd
3 changed files with 6 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ func handleGetProfileIcon(ar *api.Request) (data []byte, err error) {
switch {
case err == nil:
// Continue
case errors.Is(err, binmeta.IconIgnored):
case errors.Is(err, binmeta.ErrIconIgnored):
return nil, api.ErrorWithStatus(err, http.StatusNotFound)
default:
return nil, err