Skip to content

Commit

Permalink
Update diagnostic message
Browse files Browse the repository at this point in the history
  • Loading branch information
SooluThomas committed Mar 26, 2024
1 parent cf72b49 commit 3a1c359
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/AST/ASTGates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id,

if (C != Params.size()) {
std::stringstream M;
M << "Inconsistent number of parameters in the gate call for the corresponding gate definition" << C;
M << "Inconsistent number of parameters in the gate call for the "
"corresponding gate definition"
<< C;
QasmDiagnosticEmitter::Instance().EmitDiagnostic(
DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error);
return;
Expand Down Expand Up @@ -1371,7 +1373,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id,

if (C != Params.size()) {
std::stringstream M;
M << "Inconsistent number of parameters in the gate call for the corresponding gate definition" << C;
M << "Inconsistent number of parameters in the gate call for the "
"corresponding gate definition"
<< C;
QasmDiagnosticEmitter::Instance().EmitDiagnostic(
DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error);
return;
Expand Down

0 comments on commit 3a1c359

Please sign in to comment.