chrome-cli
chrome-cli copied to clipboard
"Loading: No" Returns Successful ("0") Exit Status
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 <URL>
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.