Use get_last_sys_error() instead of get_last_rtl_error()