Need fallback behaviour when dirs::download_dir returns None (#118)

This commit is contained in:
Ulyssa 2023-07-07 20:35:01 -07:00
parent 3da9835a17
commit 6e8e12b579
No known key found for this signature in database
GPG key ID: F2873CA2997B83C5
4 changed files with 10 additions and 9 deletions

View file

@ -349,6 +349,9 @@ pub enum IambError {
#[error("Serialization/deserialization error: {0}")]
Serde(#[from] serde_json::Error),
#[error("No download directory configured")]
NoDownloadDir,
#[error("Selected message does not have any attachments")]
NoAttachment,