diff --git a/src/error.rs b/src/error.rs index 185d595761..dc42c9c738 100644 --- a/src/error.rs +++ b/src/error.rs @@ -59,16 +59,20 @@ pub enum Error { #[error(transparent)] FromUtf8Error(#[from] std::string::FromUtf8Error), - /// A non-specific [`io::Error`]. + /// A generic [`io::Error`]. #[error(transparent)] IoError(#[from] io::Error), + /// A [`tokio::task`] failed to execute to completion. + #[error(transparent)] + JoinError(#[from] tokio::task::JoinError), + /// A [`Pm`](crate::pm::Pm) operation is not implemented. #[error("Operation `{op}` is unimplemented for `{pm}`")] #[allow(missing_docs)] OperationUnimplementedError { op: String, pm: String }, - /// Miscellaneous other error. + /// An error from a non-specified category. #[error("{0}")] OtherError(String), }