Skip to content

Comments

[9.x] Gracefully fail when unable to locate expected binary on the system for artisan docs command#43521

Merged
taylorotwell merged 1 commit intolaravel:9.xfrom
timacdonald:missing-docs-opener
Aug 3, 2022
Merged

[9.x] Gracefully fail when unable to locate expected binary on the system for artisan docs command#43521
taylorotwell merged 1 commit intolaravel:9.xfrom
timacdonald:missing-docs-opener

Conversation

@timacdonald
Copy link
Member

@timacdonald timacdonald commented Aug 3, 2022

The expected binaries may not actually be present on the system. This is generally going to be the case on linux systems.

This PR ensures we detect the binary before attempting to call it.

We now suggest opening the URL manually (which is now in the command line output) or creating a custom opener.

Screen Shot 2022-08-03 at 11 05 52 am

@timacdonald timacdonald force-pushed the missing-docs-opener branch from 7109401 to 02382ee Compare August 3, 2022 01:04
@timacdonald timacdonald marked this pull request as draft August 3, 2022 01:04
@timacdonald timacdonald force-pushed the missing-docs-opener branch 2 times, most recently from 039bb31 to 1bc16f2 Compare August 3, 2022 01:08
@timacdonald timacdonald force-pushed the missing-docs-opener branch from 1bc16f2 to 91824d5 Compare August 3, 2022 01:10
@timacdonald timacdonald marked this pull request as ready for review August 3, 2022 01:12
@taylorotwell taylorotwell merged commit b67f4af into laravel:9.x Aug 3, 2022
@timacdonald timacdonald deleted the missing-docs-opener branch August 8, 2022 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants