blob: 42bff359be8d7a11d8e3e81baf9acdd7527f7bac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//! An error type for the `tor-keys` crate.
use crate::ssh::SshKeyAlgorithm;
/// An Error type for this crate.
#[derive(thiserror::Error, Debug, Clone)]
#[non_exhaustive]
pub enum Error {
/// Attempted to use an unsupported key.
#[error("Unsupported key algorithm {0}")]
UnsupportedKeyAlgorithm(SshKeyAlgorithm),
/// An internal error.
#[error("Internal error")]
Bug(#[from] tor_error::Bug),
}
|