mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-19 02:26:27 +00:00
Use eris for error management
This commit is contained in:
@ -12,6 +12,8 @@ import (
|
||||
"npm/internal/status"
|
||||
"npm/internal/types"
|
||||
"npm/internal/util"
|
||||
|
||||
"github.com/rotisserie/eris"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -73,7 +75,7 @@ func (m *Model) Save(skipConfiguration bool) error {
|
||||
var err error
|
||||
|
||||
if m.UserID == 0 {
|
||||
return fmt.Errorf("User ID must be specified")
|
||||
return eris.Errorf("User ID must be specified")
|
||||
}
|
||||
|
||||
// ensure name is trimmed of whitespace
|
||||
|
Reference in New Issue
Block a user