Log errors before, not after #record_error