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