Skip to content

Commit 0d9feda

Browse files
committed
Format nullary protocols better in the error msg
1 parent 4d6f982 commit 0d9feda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

protocols/src/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ impl DiagnosticHandler {
488488
"Expressions must be in the same file for assertion error"
489489
);
490490
let transaction_call = if todo_args.is_empty() {
491-
tr.name.clone()
491+
format!("{}()", tr.name)
492492
} else {
493493
let args_str = todo_args
494494
.iter()

protocols/tests/brave_new_world/failure_to_update/ftu_sha_bug.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: The two expressions did not evaluate to the same value (in transaction `failure_to_update_sha`)
1+
error: The two expressions did not evaluate to the same value (in transaction `failure_to_update_sha()`)
22
┌─ brave_new_world/failure_to_update/ftu_sha.prot:29:15
33
44
29 │ assert_eq(dut.valid, 1'b0);

0 commit comments

Comments
 (0)