Skip to main content

systemprompt_models/errors/
secrets.rs

1//! Errors raised while loading or validating the on-disk secrets file.
2
3#[derive(Debug, thiserror::Error)]
4pub enum SecretsError {
5    #[error("{context}: {source}")]
6    Parse {
7        context: &'static str,
8        #[source]
9        source: serde_json::Error,
10    },
11
12    #[error("{0}")]
13    Invalid(String),
14}