ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.06k stars 492 forks source link

Print aux_message if there is no message #1573

Closed loveridge closed 5 months ago

loveridge commented 5 months ago

The aux_message would not be printed if the message was empty because the fstring %s is filled with the empty message argument.

Before: stack index 2, expected string, received no value:

After: stack index 2, expected string, received no value: (bad argument into 'sol::basic_table_core<false, sol::basic_reference<false> >(Rml::Context&, const std::__cxx11::basic_string<char>&, sol::basic_object<sol::basic_reference<false> >, sol::this_state)')

ThePhD commented 5 months ago

Good catch; thanks for submitting!