mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[shellprocess] Make explicit that an error code has been ignored, by logging it.
This commit is contained in:
parent
e48767eaa6
commit
8571fd800e
1 changed files with 5 additions and 2 deletions
|
@ -99,9 +99,12 @@ ShellProcessJob::exec()
|
|||
CalamaresUtils::ProcessResult r = System::runCommand(
|
||||
location, shell_cmd, QString(), QString(), 10 );
|
||||
|
||||
if ( ( r.getExitCode() != 0 ) && !suppress_result )
|
||||
if ( r.getExitCode() != 0 )
|
||||
{
|
||||
return Calamares::JobResult::error( tr( "Could not run command." ), r.getOutput() );
|
||||
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…
Add table
Reference in a new issue