summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-08-06 21:20:40 +0000
committerChris Wilson <chris+github@qwirx.com>2015-08-06 21:20:40 +0000
commit4c4ea17010dc4f661d96f1e0a355a2b020544525 (patch)
tree9aa294693552a9eb5d6fc8d65d85029f20d75142 /lib
parentedb86d15273522ba0fab24e22944a66b8f1199b4 (diff)
Improve error message when TEST_PROTOCOL_ERROR_OR() fails.
The protocol command didn't succeed, it just returned a result with an unexpected type, so make the failure message reflect that and give details of the response actually received, to help with debugging.
Diffstat (limited to 'lib')
-rw-r--r--lib/backupstore/StoreTestUtils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/backupstore/StoreTestUtils.h b/lib/backupstore/StoreTestUtils.h
index dbacabcf..b3faebb5 100644
--- a/lib/backupstore/StoreTestUtils.h
+++ b/lib/backupstore/StoreTestUtils.h
@@ -99,7 +99,9 @@ bool delete_account();
} \
else \
{ \
- TEST_FAIL_WITH_MESSAGE("command returned success"); \
+ TEST_FAIL_WITH_MESSAGE("command did not return an error, but a " \
+ "response of type " << type << ", subtype " << subtype << \
+ " instead"); \
or_statements; \
} \
}