summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/chat/chat-sender2.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/components/chat/chat-sender2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/components/chat/chat-sender2.cpp b/sca-cpp/trunk/components/chat/chat-sender2.cpp
index 05dec36270..b230d130c1 100644
--- a/sca-cpp/trunk/components/chat/chat-sender2.cpp
+++ b/sca-cpp/trunk/components/chat/chat-sender2.cpp
@@ -55,12 +55,12 @@ const failable<value> post(const lambda<value(const list<value>&)> jid, const la
XMPPClient xc(vjid, vpass);
const failable<bool> c = connect(xc);
if (!hasContent(c))
- return mkfailure<value>(reason(c));
+ return mkfailure<value>(c);
// Post the message
const failable<bool> r = post(vto, vmsg, xc);
if (!hasContent(r))
- return mkfailure<value>(reason(r));
+ return mkfailure<value>(r);
return value(mklist<value>(vto));
}
@@ -79,7 +79,7 @@ public:
// Stop the chat sender component
if (func != "stop")
- return tuscany::mkfailure<tuscany::value>();
+ return mkfailure<value>();
debug("chat::sender::stop");
return failable<value>(value(lambda<value(const list<value>&)>()));
}