mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2026-02-25 05:08:15 +00:00
feat: add instagram session file
This commit is contained in:
@@ -26,8 +26,8 @@ pub enum Error {
|
||||
#[error("join error: {0}")]
|
||||
Join(#[from] tokio::task::JoinError),
|
||||
|
||||
#[error("rate limit exceeded")]
|
||||
RateLimit,
|
||||
#[error("environment variable `{0}` not found")]
|
||||
EnvNotFound(String),
|
||||
|
||||
#[error("other: {0}")]
|
||||
Other(String),
|
||||
@@ -53,6 +53,11 @@ impl Error {
|
||||
pub fn validation_falied(text: impl Into<String>) -> Self {
|
||||
Self::ValidationFailed(text.into())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn env(text: impl Into<String>) -> Self {
|
||||
Self::EnvNotFound(text.into())
|
||||
}
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
Reference in New Issue
Block a user