This doesn't match your type spec:

```
yz_bucket_validator.erl:51: The pattern {'error', 'no_search_index'} can never match the type {'error' | binary(),binary() | pos_integer()}
```