bencode: fix unsupported type error message
This commit is contained in:
parent
8a71ee793d
commit
b51bdd69ec
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ func marshal(w io.Writer, data interface{}) (err error) {
|
||||||
err = marshalList(w, v)
|
err = marshalList(w, v)
|
||||||
|
|
||||||
default:
|
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
|
return err
|
||||||
|
|
Loading…
Reference in a new issue