mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 23:50:00 -07:00
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