Skip to content
Snippets Groups Projects
Commit 07504778 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

fixed exception being created but not thrown

parent a38bc8b9
No related branches found
No related tags found
1 merge request!26parser cleanup and fixes
......@@ -392,7 +392,7 @@ run(std::vector<std::string> &p_argv)
end = p_argv.end();
std::string first_argv = *cur_arg;
if (first_argv.find("-apply,") == 0) { CdoSyntaxError(cur_arg, "Apply can not be in first position"); }
if (first_argv.find("-apply,") == 0) { throw CdoSyntaxError(cur_arg, "Apply can not be in first position"); }
first_operator = create_operator_node(cur_arg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment