summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-26 15:27:03 +0000
committerDavid Robillard <d@drobilla.net>2012-07-26 15:27:03 +0000
commit3c5931bb13b5f88edcebb375fa6964dde8b85563 (patch)
tree9801897576b7fb9d8a9f700847c670f216fc93b7 /tests
parentb83ed4f83cf4c9b5054dcf55bea710313c369633 (diff)
downloadingen-3c5931bb13b5f88edcebb375fa6964dde8b85563.tar.gz
ingen-3c5931bb13b5f88edcebb375fa6964dde8b85563.tar.bz2
ingen-3c5931bb13b5f88edcebb375fa6964dde8b85563.zip
Report subject with errors to client for more meaningful error messages.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4556 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests')
-rw-r--r--tests/ingen_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index ec41cb2c..dcde210f 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -106,10 +106,10 @@ public:
void get(const Raul::URI& uri) {}
- void response(int32_t id, Status status) {
+ void response(int32_t id, Status status, const std::string& subject) {
if (status) {
- Raul::error(Raul::fmt("error on message %1%: %2%\n")
- % id % ingen_status_string(status));
+ Raul::error(Raul::fmt("error on message %1%: %2% (%3)\n")
+ % id % ingen_status_string(status) % subject);
exit(EXIT_FAILURE);
}
}