Commit f2f59c50 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Kamil Kisiel

fuzz: Fix error printing thinko

I put "err" into format string instead of argument. Apologize for that...
parent 192173dc
......@@ -44,7 +44,7 @@ func Fuzz(data []byte) int {
obj2, err := dec.Decode()
if err != nil {
// must succeed, as buf should contain valid pickle from encoder
panic(fmt.Sprintf("protocol %d: decode back error: err\npickle: %q", proto, encoded))
panic(fmt.Sprintf("protocol %d: decode back error: %s\npickle: %q", proto, err, encoded))
}
if !reflect.DeepEqual(obj, obj2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment