Console error code of 2 during successful commands?
willsmanley opened this issue ยท 7 comments
Not sure if this is the intended behavior, but when I run the command successfully, it still outputs a console error code of "2". If I understand correctly, a successful command should output "0" for successful executions.
Is this the correct behavior?
If desired I can fill out the full bug report, but I figured a quick post would be better to address this small issue.
Otherwise thanks for the awesome package!
So, basically the command will exit with a status code of 2 if the website you're trying to run the command against has vulnerabilities.
is-website-vulnerable/bin/is-website-vulnerable.js
Lines 62 to 63 in 492bd53
Ok thanks for letting me know. Is there an exit status code for unsuccessful commands (such as the website DNS records could not be found)?
Yes, it is 1
is-website-vulnerable/bin/is-website-vulnerable.js
Lines 68 to 70 in 492bd53
Thanks Raj for picking up this one!