Skip to content
Snippets Groups Projects
Commit 5a5909bf authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix error message

parent 619d2751
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -267,7 +267,7 @@ ASTNodeAffectationExpressionBuilder::ASTNodeAffectationExpressionBuilder(ASTNode ...@@ -267,7 +267,7 @@ ASTNodeAffectationExpressionBuilder::ASTNodeAffectationExpressionBuilder(ASTNode
} }
// LCOV_EXCL_START // LCOV_EXCL_START
default: { default: {
throw parse_error("unexpected error: invalid vector dimension for string affectation", throw parse_error("unexpected error: invalid vector dimension for tuple affectation",
std::vector{n.children[1]->begin()}); std::vector{n.children[1]->begin()});
} }
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
...@@ -282,7 +282,7 @@ ASTNodeAffectationExpressionBuilder::ASTNodeAffectationExpressionBuilder(ASTNode ...@@ -282,7 +282,7 @@ ASTNodeAffectationExpressionBuilder::ASTNodeAffectationExpressionBuilder(ASTNode
} }
// LCOV_EXCL_START // LCOV_EXCL_START
default: { default: {
throw parse_error("unexpected error: undefined operand type for string affectation", throw parse_error("unexpected error: undefined operand type for tuple affectation",
std::vector{n.children[1]->begin()}); std::vector{n.children[1]->begin()});
} }
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment