]> Sergey Matveev's repositories - btrtrc.git/commit
Don't panic on int parse failures
authorMatt Joiner <anacrolix@gmail.com>
Thu, 12 Aug 2021 03:46:02 +0000 (13:46 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 12 Aug 2021 03:46:02 +0000 (13:46 +1000)
commit901a8b1b366ebfb42efea01813eb9019745075c9
tree593f11f5a307fcf9a0b0111d0c9259f026efc174
parenta76fad32ebbb5f11818682e3177ed0949a9c7891
Don't panic on int parse failures

This means for UnmarshalTypeErrors we now include context. There are still some other error types remaining that are thrown up via panic.
bencode/api.go
bencode/decode.go
bencode/decode_test.go