Do not use println! in JSON-RPC

This may break the output of deltachat-rpc-server
This commit is contained in:
link2xt
2023-04-20 12:32:52 +00:00
parent ede4e8109e
commit 3a8df3e673
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## Unreleased
### Fixes
- JSON-RPC: do not print to stdout on failure to find an account.
## [1.113.0] - 2023-04-18
### Added

View File

@@ -205,8 +205,6 @@ impl CommandApi {
let context_option = self.accounts.read().await.get_account(id);
if let Some(ctx) = context_option {
accounts.push(Account::from_context(&ctx, id).await?)
} else {
println!("account with id {id} doesn't exist anymore");
}
}
Ok(accounts)