Produce an alert when an error is printed to the console.