Skip to content
Snippets Groups Projects
Commit b2dc4d46 authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

BUG: problem in status in Wrapper launcher

parent 5e30134b
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ int main(int argc, char* argv[])
if (launcher->Load(exp) == true)
{
if (launcher->ExecuteAndWriteOutput() == false)
if (launcher->ExecuteAndWriteOutput() == true)
{
return EXIT_FAILURE;
}
......
......@@ -138,26 +138,29 @@ CommandLineLauncher::Execute()
{
if( this->BeforeExecute() == false )
{
return false;
return true;
}
m_Application->Execute();
return true;
int res = m_Application->Execute();
if (res == 0)
return false;
else return true;
}
bool
CommandLineLauncher::ExecuteAndWriteOutput()
{
if( this->BeforeExecute() == false )
if (this->BeforeExecute() == false)
{
return false;
return true;
}
m_Application->ExecuteAndWriteOutput();
return true;
int res = m_Application->ExecuteAndWriteOutput();
if (res == 0)
return false;
else return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment