Skip to content

Commit 2a98e55

Browse files
committed
Shorter error messages
1 parent 40f5d6c commit 2a98e55

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bloqade/analysis/validation/nocloning/analysis.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,13 @@ def eval_stmt_fallback(
160160
if len(unknown_arg_names) > 1:
161161
condition = f", when {args_str}"
162162
else:
163-
condition = f", with unknown index {args_str}"
163+
condition = f", with unknown argument {args_str}"
164164

165165
self._validation_errors.append(
166166
PotentialQubitValidationError(stmt, gate_name, condition)
167167
)
168168

169-
usage = May(
170-
violations=frozenset([f"Unknown qubits at {gate_name} Gate{condition}"])
171-
)
169+
usage = May(violations=frozenset([f"{gate_name} Gate{condition}"]))
172170
else:
173171
usage = Bottom()
174172

0 commit comments

Comments
 (0)