From 3c5931bb13b5f88edcebb375fa6964dde8b85563 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2012 15:27:03 +0000 Subject: 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 --- tests/ingen_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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); } } -- cgit v1.2.1