chore: make fmt.Errorf use %w to wrap error instead of %v (#20350)
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ func (u Uint) IsNil() bool {
|
||||
func NewUintFromBigInt(i *big.Int) Uint {
|
||||
u, err := checkNewUint(i)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("overflow: %s", err))
|
||||
panic(fmt.Errorf("overflow: %w", err))
|
||||
}
|
||||
return u
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user