[BUGREPORT][LUA] assert doesn't work in hooks
Example script:
add_hook("key_down", "test", function(key)
echo("foo")
assert(nil, "this does nothing")
end)
Expected behaviour:
After pressing a key it prints "foo" and then stops the script with the error message "this does nothing".
Observed behaviour:
Prints "foo" but doesn't stop the script or show the error message.