From aadaff5db4bf0b35ac3af4cd987ef387134ef01e Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 5 Jun 2025 19:44:27 -0500 Subject: [PATCH] Add "No such release" error variant --- src/lib.rs | 1 + src/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index cd09109..14cfab7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,6 +16,7 @@ pub enum Error { WrappedReqwestErr(reqwest::Error), MissingAuthToken, NoSuchFile, // for release attachment 'file exists' pre-check. + NoSuchRelease, ApiErrorMessage(ApiError), } diff --git a/src/main.rs b/src/main.rs index 6a9762e..113dc7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); } } }