Closed wouterbeek closed 7 years ago
There is little one can reasonably do. The underlying system call says EINVAL
, which can mean a lot of things. We'd have to look around ourselves which is the most likely cause. I think that is way above what one can expect for this rather obscure predicate. And then, should it be a resource_error? A permission_error also makes sense ...
Fair points. The predicate may be somewhat obscure, but it is needed if one uses the RocksDB library.
The following error message is a bit misleading:
The problem is not that the argument is invalid, but that the OS has a lower hard limit. A better exception would be
resource_error/1
.