• Meir Shpilraien (Spielrein)'s avatar
    Expose Lua error in case of string error. (#10677) · f44c3432
    Meir Shpilraien (Spielrein) authored
    In general, our error handler make sure the error
    object is always a table. In some rare cases (such
    as OOM error), the error handler will not be called
    and the error object will be a string. The PR expose
    the error even if its a string and not a table.
    
    Currently there is no way to test it but if it'll ever happen,
    it is better to propagate this string upwards than just
    generate a generic error without any specific info.
    f44c3432
script_lua.c 57.7 KB