Catch errors and print the error message.