Demonstrates how to get more verbose information about the last session error in WiredTiger.
#include <test_util.h>
static const char *home;
int
main(int argc, char *argv[])
{
home = example_setup(argc, argv);
int err, sub_level_err;
const char *err_msg;
printf("ex_get_last_error: expect verbose information about the last session error:\n");
error_check(conn->
open_session(conn, NULL, NULL, &session));
printf("Error code: %d\n", err);
printf("Sub-level error code: %d\n", sub_level_err);
printf("Error message: '%s'\n", err_msg);
error_check(conn->
close(conn, NULL));
return (EXIT_SUCCESS);
}