summaryrefslogtreecommitdiff
path: root/decode.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-25 20:42:37 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-25 20:42:37 -0700
commit0fa9f8b14f04f4b0099f038cc43e4cef57a155a1 (patch)
tree62a21db8d3241bcf264bcf0874df632c4ce9ba94 /decode.go
parent03778c094d995791f6c3df08afeeb792f33f35a5 (diff)
parent22edcf6a68a057ed04368d5f78c8ba3ddfee8d57 (diff)
Merge branch 'lukeshu/fuzz-err'
Diffstat (limited to 'decode.go')
-rw-r--r--decode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.go b/decode.go
index d4ecd4f..44eaba4 100644
--- a/decode.go
+++ b/decode.go
@@ -316,7 +316,7 @@ func (dec *Decoder) expectRuneOrPanic(ec rune, et jsonparse.RuneType) *DecodeErr
return err
}
if ac != ec || at != et {
- panic(fmt.Errorf("should not happen: expected %q/%v but got %q/%v", ec, et, ac, at))
+ panic(fmt.Errorf("should not happen: expected r=%q t=%#v but got r=%q t=%#v", ec, et, ac, at))
}
return nil
}