Skip to content

Commit 3a1c359

Browse files
committed
Update diagnostic message
1 parent cf72b49 commit 3a1c359

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/AST/ASTGates.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +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 corresponding gate definition" << C;
1136+
M << "Inconsistent number of parameters in the gate call for the "
1137+
"corresponding gate definition"
1138+
<< C;
11371139
QasmDiagnosticEmitter::Instance().EmitDiagnostic(
11381140
DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error);
11391141
return;
@@ -1371,7 +1373,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id,
13711373

13721374
if (C != Params.size()) {
13731375
std::stringstream M;
1374-
M << "Inconsistent number of parameters in the gate call for the corresponding gate definition" << C;
1376+
M << "Inconsistent number of parameters in the gate call for the "
1377+
"corresponding gate definition"
1378+
<< C;
13751379
QasmDiagnosticEmitter::Instance().EmitDiagnostic(
13761380
DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error);
13771381
return;

0 commit comments

Comments
 (0)