From 66c888f77c931b852d25255977e46e188ae8d1f2 Mon Sep 17 00:00:00 2001 From: Owen Green Date: Fri, 11 Sep 2020 21:02:10 +0100 Subject: [PATCH] Print warnings properly --- include/FluidSCWrapper.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 96eac50..8c99a9b 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -550,18 +550,21 @@ public: w->mJobDone = true; return false; } - + + w->client.checkProgress(r); + if(w->mSynchronous) r = w->mResult; if (!r.ok()) { - if(!w->mJobDone) - std::cout << "ERROR: " << Wrapper::getName() << ": " - << r.message().c_str() << std::endl; + if(!w->mJobDone) Wrapper::printResult(w,r); + if(r.status() == Result::Status::kError) + { w->mJobDone = true; w->mHasTriggered = false; - return false; + return false; + } } - w->mHasTriggered = false; w->mJobDone = true; + w->mHasTriggered = false; return true; } return false;