keyfork/crates/daemon/keyforkd/src/error.rs

10 lines
341 B
Rust
Raw Normal View History

2023-08-25 06:32:21 +00:00
use thiserror::Error;
2024-01-16 02:44:48 +00:00
/// An error occurred while starting the Keyfork server.
2023-08-25 06:32:21 +00:00
#[derive(Debug, Clone, Error)]
2023-09-26 02:16:33 +00:00
pub enum Keyforkd {
2024-01-16 02:44:48 +00:00
/// The required environment variables were not set and a socket could not be mounted.
#[error("Neither KEYFORKD_SOCKET_PATH nor XDG_RUNTIME_DIR were set, nowhere to mount socket")]
NoSocketPath,
2023-08-25 06:32:21 +00:00
}