grafbase_local_common/errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CommonError {
5 /// returned if the current directory path cannot be read
6 #[error("could not read the current path")]
7 ReadCurrentDirectory,
8 /// returned if the grafbase directory cannot be found
9 #[error("could not find grafbase/schema.graphql in the current or any parent directory")]
10 FindGrafbaseDirectory,
11}