aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index eeca1e8..a02b836 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -347,6 +347,12 @@ pub enum Error {
#[snafu(display("failed to spawn process for `{}`: {}", cmd, source))]
SpawnProcess { cmd: String, source: std::io::Error },
+ #[snafu(display("failed to switch gid: {}", source))]
+ SwitchGid { source: std::io::Error },
+
+ #[snafu(display("failed to switch uid: {}", source))]
+ SwitchUid { source: std::io::Error },
+
#[snafu(display(
"failed to spawn a background thread to read terminal input: {}",
source
@@ -386,6 +392,18 @@ pub enum Error {
#[snafu(display("unexpected message: {:?}", message))]
UnexpectedMessage { message: crate::protocol::Message },
+ #[snafu(display("failed to find group with gid {}", gid))]
+ UnknownGid { gid: users::gid_t },
+
+ #[snafu(display("failed to find group with group name {}", name))]
+ UnknownGroup { name: String },
+
+ #[snafu(display("failed to find user with uid {}", uid))]
+ UnknownUid { uid: users::uid_t },
+
+ #[snafu(display("failed to find user with username {}", name))]
+ UnknownUser { name: String },
+
#[snafu(display("failed to write to event channel: {}", source))]
WriteChannel {
source: tokio::sync::mpsc::error::UnboundedSendError,