summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/chat/chat-sender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/chat/chat-sender.cpp')
-rw-r--r--sca-cpp/trunk/components/chat/chat-sender.cpp6
1 files changed, 3 insertions, 3 deletions
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<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));
}
@@ -96,7 +96,7 @@ public:
// Stop the chat sender component
if (func != "stop")
- return tuscany::mkfailure<tuscany::value>();
+ return mkfailure<value>();
debug("chat::sender::stop");
// Disconnect and shutdown the worker thread
@@ -125,7 +125,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);