bencode: fix unsupported type error message

This commit is contained in:
Leo Balduf 2016-09-27 17:56:09 -04:00
parent 8a71ee793d
commit b51bdd69ec

View file

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