console log the error