diff options
author | Stuart Stock <stuart@int08h.com> | 2018-03-18 22:08:16 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-03-18 22:08:16 -0500 |
commit | 1ce57a140bcdd1c0c6dfbef1403a1aa11e2240ae (patch) | |
tree | 684146b8abde757510b337ba617e03fa236d96f9 /src/error.rs | |
parent | f80c952f6f25b09946a288a51be8016849957553 (diff) | |
download | roughenough-1ce57a140bcdd1c0c6dfbef1403a1aa11e2240ae.zip |
Return Error on invalid offset instead of panic'ing
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 98f337e..18dc057 100644 --- a/src/error.rs +++ b/src/error.rs @@ -31,6 +31,9 @@ pub enum Error { /// Request was less than 1024 bytes RequestTooShort, + /// Offset within message was not 32-bit aligned + InvalidOffsetAlignment(u32), + /// Otherwise invalid request InvalidRequest, } |