diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-05-28 04:39:18 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-05-28 04:39:18 +0000 |
commit | f278315081b24b59bf73e9613e552e3519200a71 (patch) | |
tree | cdfe0e8d00e2c3e8002284c4541429f91cb66e68 /sca-cpp/trunk/components/chat/chat-sendreceiver.cpp | |
parent | c3eb9d1e20e1f8a7a101854d6a883692cac4e8d0 (diff) |
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
Diffstat (limited to 'sca-cpp/trunk/components/chat/chat-sendreceiver.cpp')
-rw-r--r-- | sca-cpp/trunk/components/chat/chat-sendreceiver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/components/chat/chat-sendreceiver.cpp b/sca-cpp/trunk/components/chat/chat-sendreceiver.cpp index ddc12bb164..aac8d69f6c 100644 --- a/sca-cpp/trunk/components/chat/chat-sendreceiver.cpp +++ b/sca-cpp/trunk/components/chat/chat-sendreceiver.cpp @@ -46,7 +46,7 @@ const failable<value> post(const list<value>& params, XMPPClient& xc) { debug(val, "chat::post::value"); const failable<bool> r = post(to, val, xc); if (!hasContent(r)) - return mkfailure<value>(reason(r)); + return mkfailure<value>(r); return value(mklist<value>(to)); } @@ -107,7 +107,7 @@ public: // Stop the chat sender/receiver component if (func != "stop") - return tuscany::mkfailure<tuscany::value>(); + return mkfailure<value>(); debug("chat::sendreceiver::stop"); // Disconnect and shutdown the worker thread @@ -138,7 +138,7 @@ const failable<value> start(const list<value>& params) { XMPPClient xc(jid, pass, false); const failable<bool> r = connect(xc); if (!hasContent(r)) - return mkfailure<value>(reason(r)); + return mkfailure<value>(r); // Listen and relay messages in a worker thread worker w(3); |