From c555535605178a9e6c2e9775634072ca82af0aec Mon Sep 17 00:00:00 2001 From: ValarDragon Date: Mon, 8 Jun 2020 12:49:19 -0500 Subject: [PATCH] Improve invalid namespace error msg --- r1cs-std/src/test_constraint_system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r1cs-std/src/test_constraint_system.rs b/r1cs-std/src/test_constraint_system.rs index 41c1bb9..458b7bb 100644 --- a/r1cs-std/src/test_constraint_system.rs +++ b/r1cs-std/src/test_constraint_system.rs @@ -132,7 +132,7 @@ impl TestConstraintSystem { 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();