mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 14:28:57 +02:00
[Nostromo] Update Status codes
This commit is contained in:
@@ -34,7 +34,7 @@ class CleanupTask extends AbstractTask
|
||||
public function execute()
|
||||
{
|
||||
if (!$this->runtime->getEnvironmentConfig('releases', false)) {
|
||||
throw new ErrorException('This task is only available with releases enabled', 400);
|
||||
throw new ErrorException('This task is only available with releases enabled', 40);
|
||||
}
|
||||
|
||||
$tarGzLocal = $this->runtime->getVar('targz_local');
|
||||
|
||||
@@ -34,7 +34,7 @@ class CopyTask extends AbstractTask
|
||||
public function execute()
|
||||
{
|
||||
if (!$this->runtime->getEnvironmentConfig('releases', false)) {
|
||||
throw new DeploymentException('This task is only available with releases enabled', 400);
|
||||
throw new DeploymentException('This task is only available with releases enabled', 40);
|
||||
}
|
||||
|
||||
$user = $this->runtime->getEnvironmentConfig('user');
|
||||
|
||||
@@ -34,7 +34,7 @@ class PrepareTask extends AbstractTask
|
||||
public function execute()
|
||||
{
|
||||
if (!$this->runtime->getEnvironmentConfig('releases', false)) {
|
||||
throw new DeploymentException('This task is only available with releases enabled', 400);
|
||||
throw new DeploymentException('This task is only available with releases enabled', 40);
|
||||
}
|
||||
|
||||
$tarGzLocal = $this->runtime->getTempFile();
|
||||
|
||||
Reference in New Issue
Block a user