Improve invalid namespace error msg
ValarDragon dojha12@gmail.com
Mon, 08 Jun 2020 12:49:19 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
M
r1cs-std/src/test_constraint_system.rs
→
r1cs-std/src/test_constraint_system.rs
@@ -132,7 +132,7 @@ }
fn compute_path(ns: &[String], this: String) -> String { if this.chars().any(|a| a == '/') { - panic!("'/' is not allowed in names"); + panic!(format!("'/' is not allowed in namespace names. Error in namespace name: {:?}", this)); } let mut name = String::new();