nunomaduro / laravel-console-task

✅ Laravel Console Task is a output method for Laravel Console Commands.
MIT License
254 stars 21 forks source link

handle thrown exceptions in a task #8

Closed Broutard closed 5 years ago

Broutard commented 5 years ago

At the moment, if an exception is thrown in a task, the task remains in "loading...".

This PR catch any exceptions in task callback, and throw back the exception after considering the task as failed.

Broutard commented 5 years ago

Test added

nunomaduro commented 5 years ago

Thanks for this @Broutard !