log the error for easier debugging.