[shellprocess] Make explicit that an error code has been ignored, by logging it.

main
Adriaan de Groot 7 years ago
parent e48767eaa6
commit 8571fd800e

@ -99,8 +99,11 @@ ShellProcessJob::exec()
CalamaresUtils::ProcessResult r = System::runCommand(
location, shell_cmd, QString(), QString(), 10 );
if ( ( r.getExitCode() != 0 ) && !suppress_result )
if ( r.getExitCode() != 0 )
{
if ( suppress_result )
cDebug() << "Error code" << r.getExitCode() << "ignored by ShellProcess configuration.";
else
return Calamares::JobResult::error( tr( "Could not run command." ), r.getOutput() );
}
}

Loading…
Cancel
Save