Updated ExecutionPointerManager to handle null exit codes
This commit is contained in:
parent
712020b129
commit
3a7738140f
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue