h1-mod/src/client/game/ui_scripting/lua/error.cpp

19 lines
391 B
C++
Raw Normal View History

2022-03-02 06:26:55 -05:00
#include <std_include.hpp>
#include "error.hpp"
namespace ui_scripting::lua
{
void handle_error(const sol::protected_function_result& result)
{
if (!result.valid())
{
printf("************** UI Script execution error **************\n");
const sol::error err = result;
printf("%s\n", err.what());
printf("****************************************************\n");
}
}
}