tor-config: Introduce ReconfigureError::Bug

Reconfigurations might fail due to internal errors.
This commit is contained in:
Ian Jackson 2022-07-12 17:25:37 +01:00
parent d407ef93ee
commit fbe80fd417
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ pub enum ReconfigureError {
/// The field (or fields) that we tried to change.
field: String,
},
/// There was a programming error somewhere in our code, or the calling code.
#[error("Programming error")]
Bug(#[from] tor_error::Bug),
}
impl HasKind for ReconfigureError {