MCPcopy Create free account
hub / github.com/chatmail/core / get_migration_error

Method get_migration_error

deltachat-jsonrpc/src/api.rs:397–400  ·  view source on GitHub ↗

If there was an error while the account was opened and migrated to the current version, then this function returns it. This function is useful because the key-contacts migration could fail due to bugs and then the account will not work properly. After opening an account, the UI should call this function and show the error string if one is returned.

(&self, account_id: u32)

Source from the content-addressed store, hash-verified

395 /// After opening an account, the UI should call this function
396 /// and show the error string if one is returned.
397 async fn get_migration_error(&self, account_id: u32) -> Result<Option<String>> {
398 let ctx = self.get_context(account_id).await?;
399 Ok(ctx.get_migration_error())
400 }
401
402 /// Copy file to blob dir.
403 async fn copy_to_blob_dir(&self, account_id: u32, path: String) -> Result<PathBuf> {

Callers

nothing calls this directly

Calls 1

get_contextMethod · 0.80

Tested by

no test coverage detected