mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Use eris for error management
This commit is contained in:
@ -2,7 +2,8 @@ package dnsproviders
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/rotisserie/eris"
|
||||
)
|
||||
|
||||
// providerField should mimick jsonschema, so that
|
||||
@ -111,5 +112,5 @@ func Get(provider string) (Provider, error) {
|
||||
if item, found := all[provider]; found {
|
||||
return item, nil
|
||||
}
|
||||
return Provider{}, errors.New("provider_not_found")
|
||||
return Provider{}, eris.New("provider_not_found")
|
||||
}
|
||||
|
Reference in New Issue
Block a user