arnaucube
arnaucube/ark-r1cs-stdPublic Self-hosted repository
Improve invalid namespace error msg
ValarDragon dojha12@gmail.com
Mon, 08 Jun 2020 12:49:19 -0500
commit

c555535605178a9e6c2e9775634072ca82af0aec

parent

75c55f7beef9c5912690d153500e21b432fa9531

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
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();