Adding comments and print statements to the catch statements.