Switch to oops for error configuration so we can get more info about failures

This commit is contained in:
eyedeekay
2025-02-26 19:22:48 -05:00
parent 3d6a08a76b
commit ae4970b3a9
40 changed files with 343 additions and 345 deletions

View File

@ -1,8 +1,7 @@
package data
import (
"errors"
"github.com/samber/oops"
"github.com/sirupsen/logrus"
)
@ -124,7 +123,7 @@ func ToI2PString(data string) (str I2PString, err error) {
"max_len": STRING_MAX_SIZE,
"reason": "too much data",
}).Error("cannot create I2P string")
err = errors.New("cannot store that much data in I2P string")
err = oops.Errorf("cannot store that much data in I2P string")
return
}
i2p_string := []byte{byte(data_len)}