Skip to main content

sr_ai/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum SrAiError {
5    #[error("not in a git repository")]
6    NotAGitRepo,
7
8    #[error("no changes to commit")]
9    NoChanges,
10
11    #[error("no commits in plan")]
12    EmptyPlan,
13
14    #[error("git command failed: {0}")]
15    GitCommand(String),
16
17    #[error("user cancelled")]
18    Cancelled,
19}