mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-30 18:07:50 +01:00
Proper 404's for objects
This commit is contained in:
14 files changed
+149
-81
No files matched your search
@@ -2,8 +2,7 @@ package dnsproviders
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/rotisserie/eris"
|
||||
"npm/internal/errors"
|
||||
)
|
||||
|
||||
// providerField should mimick jsonschema, so that
|
||||
@@ -112,5 +111,5 @@ func Get(provider string) (Provider, error) {
|
||||
if item, found := all[provider]; found {
|
||||
return item, nil
|
||||
}
|
||||
return Provider{}, eris.New("provider_not_found")
|
||||
return Provider{}, errors.ErrProviderNotFound
|
||||
}
|
||||
Reference in new issue
Block a user