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

Do not catch exceptions when '-p' is used

parent dbec65a8
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -6,6 +6,8 @@
#include <language/node_processor/INodeProcessor.hpp>
#include <language/utils/BuiltinFunctionEmbedder.hpp>
#include <utils/SignalManager.hpp>
class BuiltinFunctionExpressionProcessor final : public INodeProcessor
{
private:
......@@ -59,6 +61,10 @@ class BuiltinFunctionProcessor : public INodeProcessor
m_argument_converters[i]->convert(context_exec_policy, std::move(argument_values[i]));
}
}
if (SignalManager::pauseOnError()) {
return m_function_expression_processor->execute(context_exec_policy);
} else {
try {
return m_function_expression_processor->execute(context_exec_policy);
}
......@@ -66,6 +72,7 @@ class BuiltinFunctionProcessor : public INodeProcessor
throw parse_error(e.what(), {m_argument_node.begin()});
}
}
}
BuiltinFunctionProcessor(ASTNode& argument_node) : m_argument_node{argument_node} {}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment