tor-config: Rename to ReconfigureError::UnsupportedSituation

From Unsupported.  Prompted by
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/889#note_2856873
This was added in this MR.

Also add the missing semver note.
This commit is contained in:
Ian Jackson 2022-11-24 14:15:19 +00:00
parent fa918446ac
commit 112e28d88e
3 changed files with 3 additions and 2 deletions

View File

@ -1 +1,2 @@
ADDED: ConfigBuildError::NoCompileTimeSupport
ADDED: ReconfigureError::UnsupportedSituation

View File

@ -117,7 +117,7 @@ pub enum ReconfigureError {
/// by this build of arti -
/// that should be reported at config build type as `ConfigBuildError::Unsupported`.
#[error("Configuration not supported in this situation: {0}")]
Unsupported(String),
UnsupportedSituation(String),
/// There was a programming error somewhere in our code, or the calling code.
#[error("Programming error")]

View File

@ -163,7 +163,7 @@ impl From<GuardMgrConfigError> for tor_config::ReconfigureError {
use tor_config::ReconfigureError as R;
use GuardMgrConfigError as G;
match g {
e @ G::NoLock(_) => R::Unsupported(e.to_string()),
e @ G::NoLock(_) => R::UnsupportedSituation(e.to_string()),
}
}
}