Fix transport exception not always using 255 exit code, fixes #11954
parent
bcab1c4b8e
commit
acf398281c
|
@ -26,6 +26,11 @@ class TransportException extends \RuntimeException
|
||||||
/** @var array<mixed> */
|
/** @var array<mixed> */
|
||||||
protected $responseInfo = [];
|
protected $responseInfo = [];
|
||||||
|
|
||||||
|
public function __construct(string $message = "", int $code = 400, \Throwable $previous = null)
|
||||||
|
{
|
||||||
|
parent::__construct($message, $code, $previous);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string> $headers
|
* @param array<string> $headers
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -80,6 +80,8 @@ class Installer
|
||||||
// used/declared in SolverProblemsException, carried over here for completeness
|
// used/declared in SolverProblemsException, carried over here for completeness
|
||||||
public const ERROR_DEPENDENCY_RESOLUTION_FAILED = 2;
|
public const ERROR_DEPENDENCY_RESOLUTION_FAILED = 2;
|
||||||
public const ERROR_AUDIT_FAILED = 5;
|
public const ERROR_AUDIT_FAILED = 5;
|
||||||
|
// technically exceptions are thrown with various status codes >400, but the process exit code is normalized to 255
|
||||||
|
public const ERROR_TRANSPORT_EXCEPTION = 255;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var IOInterface
|
* @var IOInterface
|
||||||
|
|
Loading…
Reference in New Issue