fix(lib): Fix incorrect error message for name validation

The message should have been the exact opposite, duh!
This commit is contained in:
Vincent Ambo 2017-10-16 17:42:03 +02:00
parent 773d6eec9d
commit 1b79584088

View file

@ -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