improve error message for incorrect namespace item

This commit is contained in:
Marc-Antoine Arnaud 2018-12-21 14:04:21 +01:00
parent 381dd59ea0
commit 7255e85925

View File

@ -25,7 +25,8 @@ pub fn parse(
}
}
if !found {
return Err("bad namespace".to_string());
let msg = format!("bad namespace for {} with {}", name.local_name.as_str(), #namespace);
return Err(msg);
}
))
})