summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-03-20 15:51:37 -0500
committerStuart Stock <stuart@int08h.com>2018-03-20 15:51:37 -0500
commitf1f4af2cdfa6f46a58038ca0551c6353d819ac57 (patch)
treeb0eb6c8704d80fe0efcef0920aff30d01dda7727 /src/error.rs
parenta029e5073603bf33f64c7550451d32d6ac62963c (diff)
downloadroughenough-f1f4af2cdfa6f46a58038ca0551c6353d819ac57.zip
Handle malformed message with truncated tag bytes
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
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,
}