We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23c11a commit abdcc76Copy full SHA for abdcc76
1 file changed
tagtransform-lua.cpp
@@ -19,7 +19,13 @@ lua_tagtransform_t::lua_tagtransform_t(options_t const *options)
19
m_extra_attributes(options->extra_attributes)
20
{
21
luaL_openlibs(L);
22
- luaL_dofile(L, options->tag_transform_script->c_str());
+ if (luaL_dofile(L, options->tag_transform_script->c_str())) {
23
+ throw std::runtime_error(
24
+ (boost::format(
25
+ "Lua tag transform style error: %1%") %
26
+ lua_tostring(L, -1))
27
+ .str());
28
+ }
29
30
check_lua_function_exists(m_node_func);
31
check_lua_function_exists(m_way_func);
0 commit comments