Make the NoResource error description less ambiguous.

This commit is contained in:
Emmanuel Gil Peyrot 2019-06-10 22:49:57 +02:00
parent 6b17aacd8e
commit 6b1ad1ca9b

View file

@ -20,7 +20,7 @@ pub enum JidParseError {
NoDomain, NoDomain,
/// Happens when there is no resource, that is string contains no /. /// Happens when there is no resource, that is string contains no /.
#[fail(display = "no resource found in this JID")] #[fail(display = "no resource found in this full JID")]
NoResource, NoResource,
/// Happens when the node is empty, that is the string starts with a @. /// Happens when the node is empty, that is the string starts with a @.