From 1b795840880c9a2ae0afc320040e2e634b8e596b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Oct 2017 17:42:03 +0200 Subject: [PATCH] fix(lib): Fix incorrect error message for name validation The message should have been the exact opposite, duh! --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cc3939d94..87ca9af78 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