Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

siteprof's avatar

Catch console error on running task in laravel/envoy and stop execution

Hi there! When I run envoy task, while running I have errors in console. Can I catch console errors, and stop running envoy task?

0 likes
2 replies
siteprof's avatar

I use @error ... @enderror, but when some of console commands has error, it doesn't work. Taylow Otwell wrote to me yesterday, he said about -e attribute in script running, I want to try that, and will show results.

Please or to participate in this conversation.