Salome HOME
projects
/
tools
/
ydefx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Error management when a job is created with wrong parameters.
[tools/ydefx.git]
/
src
/
cpp
/
Launcher.hxx
diff --git
a/src/cpp/Launcher.hxx
b/src/cpp/Launcher.hxx
index 9396d575d37e908456fafd354e68cf404b9f023e..60c140419a825743e3913885c39e2526735ef66a 100644
(file)
--- a/
src/cpp/Launcher.hxx
+++ b/
src/cpp/Launcher.hxx
@@
-79,6
+79,14
@@
Job* Launcher::submitMonoPyJob(const PyStudyFunction& fnScript,
return result;
}
+ if(!result->lastError().empty())
+ {
+ _lastError = result->lastError();
+ delete result;
+ result = nullptr;
+ return result;
+ }
+
if(!result->launch())
{
_lastError = "Failed to submit job.\n";