last_error print example