From f1378a2eb701a39df4645d4e09d30ed2b361a208 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Thu, 8 May 2025 13:02:04 +0000 Subject: [PATCH] chore: More errors for `issue` subcommand Signed-off-by: Awiteb --- src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/error.rs b/src/error.rs index 9691f2a..d0df486 100644 --- a/src/error.rs +++ b/src/error.rs @@ -24,6 +24,12 @@ pub type N34Result = Result; /// N34 errors #[derive(Debug, thiserror::Error)] pub enum N34Error { + #[error("IO: {0}")] + Io(#[from] std::io::Error), + #[error("No editor specified in the `EDITOR` environment variable")] + EditorNotFound, + #[error("The file you edited is empty. Please save your changes before exiting the editor.")] + EmptyEditorFile, #[error("Client Error: {0}")] Client(#[from] ClientError), #[error("Unable to locate the repository. The repository may not exists in the given relays")]