prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

"Loading: No" Returns Successful ("0") Exit Status #69

Open malanmurphy opened 2 years ago

malanmurphy commented 2 years ago

chrome-cli v1.8.0

When chrome-cli fails to load a URL, it returns a status message of "Loading: No" yet it returns an exit status of "0", inferring that loading the URL was successful when the error message states that it wasn't.

To repo:

$ chrome-cli open

Continually until you receive a response that "Loading: No" (you will eventually, see https://github.com/prasmussen/chrome-cli/issues/68 for more info). Once you receive a failed loading message:

$ echo $?

It will return a "0" even though the error message states it failed to load. This incorrect error status prevents testing to see if a URL was successfully loaded.