find data dir properly

This commit is contained in:
jfmonty2 committed 2023-04-28 22:34:17 -07:00
1 parent c5dcc2e50a
commit b761d3b493
5 files changed
+90 -36

No files matched your search

+11
View File
@@ -91,6 +91,17 @@ pub enum SetupError {
AutoLaunchError(#[from] auto_launch::Error),
#[error("Failed to start listener: {0}")]
ServerSetupError(#[from] std::io::Error),
#[error("Failed to resolve data directory: {0}")]
DataDir(#[from] DataDirError),
}
#[derive(Debug, ThisError, AsRefStr)]
pub enum DataDirError {
#[error("Could not determine data directory")]
NotFound,
#[error("Failed to create data directory: {0}")]
Io(#[from] std::io::Error),
}