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/smtp/smtppost.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sca-cpp/trunk/components/smtp/smtppost.cpp') diff --git a/sca-cpp/trunk/components/smtp/smtppost.cpp b/sca-cpp/trunk/components/smtp/smtppost.cpp index a3eae095ef..db2ac9ef18 100644 --- a/sca-cpp/trunk/components/smtp/smtppost.cpp +++ b/sca-cpp/trunk/components/smtp/smtppost.cpp @@ -42,14 +42,14 @@ const failable post(const string& url, const string& user, const string& // Convert value to a content request const failable > > freq = http::contentRequest(val, url); if (!hasContent(freq)) - return mkfailure(reason(freq)); + return mkfailure(freq); const list > req = content(freq); debug(req, "smtp::post::input"); // Setup the CURL session const failable fch = http::setup(url, cs); if (!hasContent(fch)) - return mkfailure(reason(fch)); + return mkfailure(fch); CURL* ch = content(fch); curl_easy_setopt(ch, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); @@ -129,7 +129,7 @@ public: const value func(car(params)); if (func == "get") return get(url, user, pass, from, to, subject, val, *ch); - return tuscany::mkfailure(); + return mkfailure(); } private: -- cgit v1.2.3