summaryrefslogtreecommitdiff
path: root/examples/c/ex_event_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_event_handler.c')
-rw-r--r--examples/c/ex_event_handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/c/ex_event_handler.c b/examples/c/ex_event_handler.c
index d1e08edb04d..ea30a5990fb 100644
--- a/examples/c/ex_event_handler.c
+++ b/examples/c/ex_event_handler.c
@@ -111,10 +111,10 @@ config_event_handler(void)
/*! [Configure event_handler] */
/* Make an invalid API call, to ensure the event handler works. */
+ printf("ex_event_handler: expect an error message to follow\n");
(void)conn->open_session(conn, NULL, "isolation=invalid", &session);
- if (ret == 0)
- ret = conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
return (ret);
}