what about

```ruby
return error if error = validate_file(includes_dir)
```
?