mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-10 16:01:28 +01:00
Improve invalid namespace error msg
This commit is contained in:
committed by
Pratyush Mishra
parent
75c55f7bee
commit
c555535605
@@ -132,7 +132,7 @@ impl<ConstraintF: Field> TestConstraintSystem<ConstraintF> {
|
|||||||
|
|
||||||
fn compute_path(ns: &[String], this: String) -> String {
|
fn compute_path(ns: &[String], this: String) -> String {
|
||||||
if this.chars().any(|a| a == '/') {
|
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();
|
let mut name = String::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user