summaryrefslogtreecommitdiff
path: root/examples/c/ex_scope.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-05-05 15:38:12 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2016-05-05 15:38:12 +1000
commit636a7b25ef3eca6b98009330f4d35337d4f35717 (patch)
tree7cc2e03ad96e206cbe73343feef10197023a37da /examples/c/ex_scope.c
parenteaa7b5f0fcc62f356c33a2c56f45b609a73ca5dd (diff)
parent75c22bc0c662622c14e5c47d99ff262cede2c6bf (diff)
downloadmongodb-3.3.6.tar.gz
Merge branch 'develop' into mongodb-3.4mongodb-3.3.6
Diffstat (limited to 'examples/c/ex_scope.c')
-rw-r--r--examples/c/ex_scope.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/c/ex_scope.c b/examples/c/ex_scope.c
index 93878ec7e3d..ef4d67ad722 100644
--- a/examples/c/ex_scope.c
+++ b/examples/c/ex_scope.c
@@ -106,10 +106,12 @@ cursor_scope_ops(WT_CURSOR *cursor)
* memory, but as it does not position the cursor, it
* doesn't reference memory owned by the cursor, either.
*/
+ printf("ex_scope: "
+ "expect two WiredTiger error messages:\n");
if ((ret = cursor->get_key(cursor, &key)) == 0 ||
(ret = cursor->get_value(cursor, &value)) == 0) {
fprintf(stderr,
- "%s: error in s get_key/value: %s\n",
+ "%s: error in get_key/value: %s\n",
op->op, session->strerror(session, ret));
return (ret);
}
@@ -122,6 +124,8 @@ cursor_scope_ops(WT_CURSOR *cursor)
* reference key memory owned by the cursor, but has no
* value.
*/
+ printf("ex_scope: "
+ "expect one WiredTiger error message:\n");
if ((ret = cursor->get_key(cursor, &key)) != 0 ||
(ret = cursor->get_value(cursor, &value)) == 0) {
fprintf(stderr,