Skip to content

Commit 183db93

Browse files
committed
Minor fix in the diagnostic message
1 parent 3a1c359 commit 183db93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/AST/ASTGates.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,9 +1133,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id,
11331133

11341134
if (C != Params.size()) {
11351135
std::stringstream M;
1136-
M << "Inconsistent number of parameters in the gate call for the "
1137-
"corresponding gate definition"
1138-
<< C;
1136+
M << C
1137+
<< " inconsistent parameters in the gate call for the "
1138+
"corresponding gate definition";
11391139
QasmDiagnosticEmitter::Instance().EmitDiagnostic(
11401140
DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error);
11411141
return;
@@ -1373,9 +1373,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id,
13731373

13741374
if (C != Params.size()) {
13751375
std::stringstream M;
1376-
M << "Inconsistent number of parameters in the gate call for the "
1377-
"corresponding gate definition"
1378-
<< C;
1376+
M << C
1377+
<< " inconsistent parameters in the gate call for the "
1378+
"corresponding gate definition";
13791379
QasmDiagnosticEmitter::Instance().EmitDiagnostic(
13801380
DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error);
13811381
return;

0 commit comments

Comments
 (0)