change formatter

This commit is contained in:
Jared Wasinger 2024-10-16 22:50:10 +07:00
parent 07fb925ac6
commit fc6fb1a311

View file

@ -31,7 +31,7 @@ type EngineAPIError struct {
} }
func (e *EngineAPIError) ErrorCode() int { return e.code } func (e *EngineAPIError) ErrorCode() int { return e.code }
func (e *EngineAPIError) Error() string { return fmt.Sprintf("msg: \"%s\". err: \"%w\"", e.msg, e.err) } func (e *EngineAPIError) Error() string { return fmt.Sprintf("msg: \"%s\". err: \"%v\"", e.msg, e.err) }
func (e *EngineAPIError) ErrorData() interface{} { func (e *EngineAPIError) ErrorData() interface{} {
if e.err == nil { if e.err == nil {
return nil return nil