display the error in the console