Log process output of failed commands

FIXES #612
This commit is contained in:
Adriaan de Groot 2017-08-23 16:44:09 -04:00 committed by Philip
parent 50dc94995b
commit e6e1324353

View File

@ -195,8 +195,14 @@ System::targetEnvOutput( const QStringList& args,
return -1;
}
cLog() << "Finished. Exit code:" << process.exitCode();
return process.exitCode();
auto r = process.exitCode();
cLog() << "Finished. Exit code:" << r;
if ( r != 0 )
{
cLog() << "Target cmd" << args;
cLog() << "Target out" << output;
}
return r;
}