Resultify dc_create_folder and don't ignore its errors

This commit is contained in:
Alexander Krotov
2019-12-16 00:00:04 +03:00
parent 5893cd309d
commit a0645dc713
2 changed files with 9 additions and 6 deletions

View File

@@ -380,7 +380,7 @@ pub fn JobImexImap(context: &Context, job: &Job) -> Result<()> {
context.free_ongoing();
bail!("Cannot create private key or private key not available.");
} else {
dc_create_folder(context, &param);
dc_create_folder(context, &param)?;
}
}
let path = Path::new(param);