When JIRA is down, the commit hook gives a cryptic, non-descriptive error message of Error: connect ECONNREFUSED.
It should give a more graceful and informative error message to the user. I looked briefly at the jira npm module to see if I could just write a pull request myself using some built-in error handling if I could find it, but saw nothing obvious.