From f278315081b24b59bf73e9613e552e3519200a71 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 28 May 2012 04:39:18 +0000 Subject: Improve error reporting with a reason code. Improve debug and audit logging. Fix test scripts to cleanup state from previous builds and correctly report test errors. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1343138 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/components/chat/chat-sender.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sca-cpp/trunk/components/chat/chat-sender.cpp') diff --git a/sca-cpp/trunk/components/chat/chat-sender.cpp b/sca-cpp/trunk/components/chat/chat-sender.cpp index 5e289d7eac..0672292a06 100644 --- a/sca-cpp/trunk/components/chat/chat-sender.cpp +++ b/sca-cpp/trunk/components/chat/chat-sender.cpp @@ -46,7 +46,7 @@ const failable post(const list& params, XMPPClient& xc) { debug(val, "chat::post::value"); const failable r = post(to, val, xc); if (!hasContent(r)) - return mkfailure(reason(r)); + return mkfailure(r); return value(mklist(to)); } @@ -96,7 +96,7 @@ public: // Stop the chat sender component if (func != "stop") - return tuscany::mkfailure(); + return mkfailure(); debug("chat::sender::stop"); // Disconnect and shutdown the worker thread @@ -125,7 +125,7 @@ const failable start(const list& params) { XMPPClient xc(jid, pass, false); const failable r = connect(xc); if (!hasContent(r)) - return mkfailure(reason(r)); + return mkfailure(r); // Listen and relay messages in a worker thread worker w(3); -- cgit v1.2.3