Commit 60c6992
committed
Offer::read: don't override DecodeError
Previously when reading an offer from bytes, if it resulted in a DecodeError
then that error would be overridden by DecodeError::InvalidValue specifically.
Better to return to underlying specific error.1 parent 0613779 commit 60c6992
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | | - | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1043 | 1046 | | |
1044 | 1047 | | |
1045 | 1048 | | |
| |||
0 commit comments