mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-26 08:03:06 +01:00
Use eris for error management
This commit is contained in:
44 files changed
+173
-128
No files matched your search
@@ -3,7 +3,8 @@ package types
|
||||
import (
|
||||
"database/sql/driver"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/rotisserie/eris"
|
||||
)
|
||||
|
||||
// JSONB can be anything
|
||||
@@ -28,7 +29,7 @@ func (j *JSONB) Scan(src interface{}) error {
|
||||
case []uint8:
|
||||
srcString = string(src.([]uint8))
|
||||
default:
|
||||
return fmt.Errorf("Incompatible type for JSONB: %v", v)
|
||||
return eris.Errorf("Incompatible type for JSONB: %v", v)
|
||||
}
|
||||
|
||||
jsonb.Encoded = srcString
|
||||
|
||||
Reference in new issue
Block a user