chore: Errors to work with the nostr-address file

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-22 20:44:41 +00:00
parent 35d376ca6c
commit a26116702d

View File

@@ -51,6 +51,15 @@ pub enum N34Error {
to." to."
)] )]
CanNotReplyToEvent, CanNotReplyToEvent,
#[error("No repository address given and couldn't read `nostr-address` file: {0}")]
CanNotReadNostrAddressFile(std::io::Error),
#[error(
"The `nostr-address` file is empty. Please add a valid Nostr repository address (naddr) \
to the file or provide it manually as a flag."
)]
EmptyNostrAddressFile,
#[error("Invalid `nostr-address` file content: {0}")]
InvalidNostrAddressFileContent(String),
} }
impl N34Error { impl N34Error {