This ticket aims to prevent the overwriting of the err_info struct in the session whenever there is the case of __wt_session_set_last_error being called twice to set an error in one session API call. Overwriting the err_info struct should only be done when resetting the struct after each API call. The error from the deepest point in the call stack should take precedence. This ticket also aims to change the function return value to void. Instead of returning an error code if an error occurs within the function, it should abort.
Definition of Done
After each session API call, the deepest error in the stack should be the error inside the err_info struct, with python and unit tests created. The function should now have a void return value, and all areas using the function is changed to account for this.