Closed LachlanArthur closed 1 year ago
This PR modifies the behaviour of the --execute option to have it return an exit code of 1 when an exception is thrown.
--execute
Currently all exceptions are caught and rendered by Psysh internally, which makes it difficult to determine whether the command succeeded.
Original PR Reopened on master branch as per https://github.com/laravel/tinker/pull/163#issuecomment-1628516836
This PR modifies the behaviour of the
--execute
option to have it return an exit code of 1 when an exception is thrown.Currently all exceptions are caught and rendered by Psysh internally, which makes it difficult to determine whether the command succeeded.
Original PR Reopened on master branch as per https://github.com/laravel/tinker/pull/163#issuecomment-1628516836