Rename pre-commit hook to a more descriptive name
Don't continue running the Bash script on error
Check Perl script's syntax before attempting to reformat it; print error messages to STDERR so that the committer can see them right away; die() if either the syntax checker or the reformatter has failed (in order to stop the pre-commit hook)
Merge branch 'master' into json_error_handling