Skip to main content

mattermost_bot/
error.rs

1pub type Result<T> = core::result::Result<T, Error>;
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5    #[error("Please set the '{0}' environment variable")]
6    EnvVarMissing(&'static str),
7    #[error("problem with mattermost api")]
8    MattermostApi(#[source] mattermost_api::errors::ApiError),
9}