Browse Source

Improve invalid namespace error msg

master
ValarDragon 4 years ago
committed by Pratyush Mishra
parent
commit
c555535605
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      r1cs-std/src/test_constraint_system.rs

+ 1
- 1
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();

Loading…
Cancel
Save