Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Фикс возвращаемого кода команды при исключениях (#19)
Browse files Browse the repository at this point in the history
* Фикс возвращаемого кода команды при исключениях

* Фикс возвращаемого кода команды при исключениях
  • Loading branch information
viktorprogger authored and arrilot committed Nov 16, 2019
1 parent 14cff6f commit c1d5998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
} catch (Exception $e) {
$this->error($e->getMessage());
$this->error('Abort!');
}

return;
return $e->getCode();
}
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Exceptions/MigrationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

class MigrationException extends Exception
{
protected $code = 255;
}

0 comments on commit c1d5998

Please sign in to comment.