adjust code for pimalaya new errors + sync hash

This commit is contained in:
Clément DOUIN
2024-04-05 11:05:55 +02:00
parent ee9718a482
commit d95f277bab
18 changed files with 439 additions and 328 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
use anyhow::Result;
use anyhow::{anyhow, Result};
use clap::Parser;
use email::{backend::feature::BackendFeatureSource, folder::add::AddFolder};
use log::info;
@@ -48,7 +48,10 @@ impl AddFolderCommand {
)
.await?;
backend.add_folder(folder).await?;
backend
.add_folder(folder)
.await
.map_err(|err| anyhow!(err))?;
printer.print(format!("Folder {folder} successfully created!"))
}