Add the line number where the script failed to the error output.