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); } } }