Add "No such release" error variant

This commit is contained in:
2025-06-05 19:44:27 -05:00
parent 33f7fc6515
commit aadaff5db4
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ pub enum Error {
WrappedReqwestErr(reqwest::Error),
MissingAuthToken,
NoSuchFile, // for release attachment 'file exists' pre-check.
NoSuchRelease,
ApiErrorMessage(ApiError),
}

View File

@@ -88,6 +88,7 @@ async fn main() -> Result<(), gt_tools::Error> {
.await?;
} else {
println!("ERR: Couldn't find a release matching the tag \"{tag_name}\".");
return Err(gt_tools::Error::NoSuchRelease);
}
}
}