mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-12 15:53:32 -07:00
Merge pull request #229 from mrd0ll4r/bencode-error-fix
bencode: fix unsupported type error message
This commit is contained in:
@@ -90,7 +90,7 @@ func marshal(w io.Writer, data interface{}) (err error) {
|
||||
err = marshalList(w, v)
|
||||
|
||||
default:
|
||||
return fmt.Errorf("attempted to marshal unsupported type:\n%t", v)
|
||||
return fmt.Errorf("attempted to marshal unsupported type:\n%T", v)
|
||||
}
|
||||
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user