mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Do not use println! in JSON-RPC
This may break the output of deltachat-rpc-server
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- JSON-RPC: do not print to stdout on failure to find an account.
|
||||||
|
|
||||||
|
|
||||||
## [1.113.0] - 2023-04-18
|
## [1.113.0] - 2023-04-18
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -205,8 +205,6 @@ impl CommandApi {
|
|||||||
let context_option = self.accounts.read().await.get_account(id);
|
let context_option = self.accounts.read().await.get_account(id);
|
||||||
if let Some(ctx) = context_option {
|
if let Some(ctx) = context_option {
|
||||||
accounts.push(Account::from_context(&ctx, id).await?)
|
accounts.push(Account::from_context(&ctx, id).await?)
|
||||||
} else {
|
|
||||||
println!("account with id {id} doesn't exist anymore");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(accounts)
|
Ok(accounts)
|
||||||
|
|||||||
Reference in New Issue
Block a user