Errors and Diagnostics
Native Errors
Raw handle-based calls report through the native thread-local error channel. jolt_get_last_error_code() and jolt_get_last_error_message() read it; this is distinct from the managed context stored by jolt_get_error().
var ok = jolt_world_step(world, 1/60, 1);
if (ok != 1) {
var err_code = jolt_get_last_error_code();
var err_message = jolt_get_last_error_message();
show_debug_message(string(err_code) + ": " + err_message);
}