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/modules/python/mod-python.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/python/mod-python.hpp') diff --git a/sca-cpp/trunk/modules/python/mod-python.hpp b/sca-cpp/trunk/modules/python/mod-python.hpp index a4d77775a5..e6effb985b 100644 --- a/sca-cpp/trunk/modules/python/mod-python.hpp +++ b/sca-cpp/trunk/modules/python/mod-python.hpp @@ -52,7 +52,7 @@ struct applyImplementation { const value expr = append(params, px); debug(expr, "modeval::python::applyImplementation::input"); const failable res = python::evalScript(expr, impl, py); - const value val = !hasContent(res)? mklist(value(), reason(res)) : mklist(content(res)); + const value val = !hasContent(res)? mklist(value(), reason(res), rcode(res)) : mklist(content(res)); debug(val, "modeval::python::applyImplementation::result"); return val; } @@ -70,7 +70,7 @@ const failable&)> > evalImplementation(const stri return mkfailure&)> >(string("Could not read implementation: ") + fpath); const failable script = python::readScript(python::moduleName(spath), fpath, is, py); if (!hasContent(script)) - return mkfailure&)> >(reason(script)); + return mkfailure&)> >(script); return lambda&)>(applyImplementation(content(script), px, py)); } -- cgit v1.2.3