flagrant 0.0.2

CLI powered feature-flagging
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;


#[derive(Error, Debug)]
pub enum FlagrantError {
    #[error("Bad request ({0})")]
    BadRequest(&'static str),

    #[error("Unexpected failure ({0})")]
    UnexpectedFailure(&'static str, anyhow::Error),

    #[error("Query failed ({0}). Cause: {1}")]
    QueryFailed(&'static str, sqlx::Error),
}