Skip to content

Commit

Permalink
Add expired token enum status option
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Sep 19, 2024
1 parent 3b8b189 commit e64cd65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "replit-takeout"
version = "1.7.14"
version = "1.7.15"
edition = "2021"
authors = ["Ben Dixon <[email protected]>"]

Expand Down
5 changes: 5 additions & 0 deletions src/airtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ pub enum ProcessState {
/// The user didn't have any repls to download
#[serde(rename = "NoRepls")]
NoRepls,

/// We took too long and and the token expired.
#[serde(rename = "Token expired")]
TokenExpired,
}
impl Default for ProcessState {
fn default() -> Self {
Expand All @@ -204,6 +208,7 @@ impl std::fmt::Display for ProcessState {
ProcessState::ErroredMain => "ErroredMain",
ProcessState::ErroredR2 => "ErroredR2",
ProcessState::NoRepls => "NoRepls",
Self::TokenExpired => "Token expired",
};
write!(f, "{}", value)
}
Expand Down

0 comments on commit e64cd65

Please sign in to comment.