diff options
author | Stuart Stock <stuart@int08h.com> | 2018-03-20 15:51:37 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-03-20 15:51:37 -0500 |
commit | f1f4af2cdfa6f46a58038ca0551c6353d819ac57 (patch) | |
tree | b0eb6c8704d80fe0efcef0920aff30d01dda7727 /src/error.rs | |
parent | a029e5073603bf33f64c7550451d32d6ac62963c (diff) | |
download | roughenough-f1f4af2cdfa6f46a58038ca0551c6353d819ac57.zip |
Handle malformed message with truncated tag bytes
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 137ea3a..982d15d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -40,6 +40,9 @@ pub enum Error { /// Invalid number of tags specified InvalidNumTags(u32), + /// Could not convert bytes to message because bytes were too short + MessageTooShort, + /// Otherwise invalid request InvalidRequest, } |