diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-24 20:51:49 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-25 01:18:15 -0700 |
commit | 5c33db4970fcb35ae3823d61f9576fd65b5fcbdf (patch) | |
tree | 5b0178c5e2bcfdca06adf2890eccd02fe75baa3e | |
parent | a4ffa83919375653415b670fdbf136e29c1b1c2c (diff) |
decode: Touch up a panic error message
-rw-r--r-- | decode.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |