Skip to content

Commit

Permalink
change log type on missing optional lua assets from error to info
Browse files Browse the repository at this point in the history
qndel authored and glebm committed Aug 14, 2024
1 parent 8681ef7 commit 8e57785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/lua/lua.cpp
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ sol::object RunScript(std::optional<sol::environment> env, std::string_view pack
if (result.get_type() == sol::type::string) {
if (!optional)
app_fatal(result.as<std::string>());
LogError("{}", result.as<std::string>());
LogInfo("{}", result.as<std::string>());
return sol::lua_nil;
}
auto fn = result.as<sol::protected_function>();

0 comments on commit 8e57785

Please sign in to comment.