diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-14 09:25:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-14 09:25:34 -0400 |
commit | 82b128277203b86f35739a424787bbb268a6cdeb (patch) | |
tree | ee1881e73e6df1eb97e251f0720c5e8aec36c219 /src/rust/protover/errors.rs | |
parent | 3ddfd5ff25b1319dee3a013c8dac02ff9121971e (diff) | |
parent | 7c26f88fd7bde6844f36f4810675688542c313bf (diff) | |
download | tor-82b128277203b86f35739a424787bbb268a6cdeb.tar.gz tor-82b128277203b86f35739a424787bbb268a6cdeb.zip |
Merge branch 'maint-0.3.3' into maint-0.3.4
Diffstat (limited to 'src/rust/protover/errors.rs')
-rw-r--r-- | src/rust/protover/errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rust/protover/errors.rs b/src/rust/protover/errors.rs index 56473d12e6..d9dc73381f 100644 --- a/src/rust/protover/errors.rs +++ b/src/rust/protover/errors.rs @@ -18,6 +18,7 @@ pub enum ProtoverError { ExceedsExpansionLimit, UnknownProtocol, ExceedsNameLimit, + InvalidProtocol, } /// Descriptive error messages for `ProtoverError` variants. @@ -38,6 +39,8 @@ impl Display for ProtoverError { => write!(f, "A protocol in the protover string we attempted to parse is unknown."), ProtoverError::ExceedsNameLimit => write!(f, "An unrecognised protocol name was too long."), + ProtoverError::InvalidProtocol + => write!(f, "A protocol name includes invalid characters."), } } } |