Log the error