Added an error listener that just prints the error object to the console