Merge pull request #229 from mrd0ll4r/bencode-error-fix

bencode: fix unsupported type error message
This commit is contained in:
mrd0ll4r 2016-09-28 02:41:26 -04:00 committed by GitHub
commit 05b42f379c

View file

@ -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