Updated ExecutionPointerManager to handle null exit codes

This commit is contained in:
Netkas 2023-02-28 20:05:06 -05:00
parent 712020b129
commit 3a7738140f

View file

@ -467,7 +467,15 @@
}
}
return $process->getExitCode();
$exit_code = $process->getExitCode();
if($exit_code == null)
{
Console::outError(sprintf('The unit \'%s\' for \'%s\' exited with an unknown code', $unit->ExecutionPolicy->Name, $package));
return 1;
}
return $exit_code;
}
/**