Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ be considered breaking changes.
block heights and tree state are not resolved from the chain. Cannot be
combined with `--buffer-wallet-transactions`. Useful when chain data is not
available.
- The remaining user-facing CLI error messages are now translatable.

### Fixed
- `listaddresses` no longer returns an internal error when the wallet contains
Expand Down
5 changes: 5 additions & 0 deletions zallet/i18n/en-US/zallet.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ err-init-identity-not-passphrase-encrypted = {$path} is not encrypted with a pas
err-init-path-not-utf8 = {$path} is not currently supported (not UTF-8)
err-init-identity-not-usable = Identity file at {$path} is not usable: {$error}
err-init-rpc-auth-invalid = Invalid '{-cfg-rpc-auth}' configuration
err-init-single-rpc-bind = Only one RPC bind address is supported (for now)

## Chain errors

err-chain-indexer-not-running = ChainState indexer is not running

## Keystore errors

Expand Down
2 changes: 1 addition & 1 deletion zallet/src/components/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Chain {
.read()
.await
.as_ref()
.ok_or_else(|| ErrorKind::Generic.context("ChainState indexer is not running"))?
.ok_or_else(|| ErrorKind::Generic.context(crate::fl!("err-chain-indexer-not-running")))?
.inner_ref()
.get_subscriber())
}
Expand Down
2 changes: 1 addition & 1 deletion zallet/src/components/json_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl JsonRpc {
if !rpc.bind.is_empty() {
if rpc.bind.len() > 1 {
return Err(ErrorKind::Init
.context("Only one RPC bind address is supported (for now)")
.context(crate::fl!("err-init-single-rpc-bind"))
.into());
}
info!("Spawning RPC server");
Expand Down