systemprompt_models/errors/secrets.rs
1//! Errors raised while loading or validating the on-disk secrets file.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6#[derive(Debug, thiserror::Error)]
7pub enum SecretsError {
8 #[error("{context}: {source}")]
9 Parse {
10 context: &'static str,
11 #[source]
12 source: serde_json::Error,
13 },
14
15 #[error("{0}")]
16 Invalid(String),
17}