mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-01 02:17:50 +01:00
Use eris for error management
This commit is contained in:
44 files changed
+173
-128
No files matched your search
@@ -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