diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-10-16T15·42+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-10-16T15·42+0200 |
commit | 1b795840880c9a2ae0afc320040e2e634b8e596b (patch) | |
tree | e52b8d30b4bc1b2c6df5206a7a691ee1c9452926 /src | |
parent | 773d6eec9dc5d2a20e50b18d2f428fa0919310b6 (diff) |
fix(lib): Fix incorrect error message for name validation
The message should have been the exact opposite, duh!
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index cc3939d94cad..87ca9af78553 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,7 +33,7 @@ impl Name { let string = s.to_string(); if !string.starts_with('/') { - return Err(Error::InvalidQueueName("Queue name must not start with '/'")); + return Err(Error::InvalidQueueName("Queue name must start with '/'")); } // The C library has a special error return for this case, so I assume people must actually |