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

Fix error message

parent 42427a56
No related branches found
No related tags found
1 merge request!146Refactor slightly BuiltinFunctionEmbedder and check types
...@@ -32,7 +32,7 @@ class BuiltinModule : public IModule ...@@ -32,7 +32,7 @@ class BuiltinModule : public IModule
} }
catch (std::invalid_argument& e) { catch (std::invalid_argument& e) {
std::ostringstream os; std::ostringstream os;
os << "while defining user function '" << rang::fgB::yellow << name << rang::fg::reset << "'\n"; os << "while defining builtin function '" << rang::fgB::yellow << name << rang::fg::reset << "'\n";
os << e.what(); os << e.what();
throw UnexpectedError(os.str()); throw UnexpectedError(os.str());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment