Closed qsantos closed 4 months ago
The error message comes from:
The core::result::Result
returned by the Future
is converted into a miette::Result
but no context message is attached.
Would it make sense to require that any call to into_diagnostic()
be followed by a call to wrap_err()
? Maybe we could make a lint for that.
Note, however, that the full function is:
This function will only return Ok(false)
if the entry exists but is not a directory. In this case, maybe it would make more sense to do:
/// Check if this store exists
async fn exists(&self) -> bool {
fs::metadata(&self.proto_path()).await.is_ok_and(|meta| meta.is_dir())
}
This seems to be fixed right? I tried to repro and now buffrs automatically create the proto/vendor directory. Can this issue be closed?
From #192:
The error message does not help understanding that the issue comes from the missing
proto/vendor/
directory.