Some basic error logging.