diff options
Diffstat (limited to 'src/rust/protover/errors.rs')
-rw-r--r-- | src/rust/protover/errors.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rust/protover/errors.rs b/src/rust/protover/errors.rs index 71fbc53e17..f26a48b019 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. @@ -48,6 +49,9 @@ impl Display for ProtoverError { ProtoverError::ExceedsNameLimit => { write!(f, "An unrecognised protocol name was too long.") } + ProtoverError::InvalidProtocol => { + write!(f, "A protocol name includes invalid characters.") + } } } } |