storm_workspace/errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum StormWorkspaceError {
5 #[error("Unable to find the current directory - are you in a valid workspace?")]
6 NoCurrentDirectory,
7 #[error("A failure occured while attempting to read the directory {0}")]
8 ReadDirectoryFailure(String),
9 #[error(
10 "Unable to find the workspace root directory - must contain one of the following files: {0}"
11 )]
12 WorkspaceRootNotFound(String),
13}