Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #236 from dusk-network/improve-error-messages
Browse files Browse the repository at this point in the history
Update Rusk conn and password error messages
  • Loading branch information
HDauven authored Feb 23, 2024
2 parents 3da1081 + f046c7c commit 5d23b5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Update unclear error message [#235]

### Removed

- Remove `stake_allow` command
Expand Down Expand Up @@ -472,6 +476,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Implementation of `Store` trait from `wallet-core`
- Implementation of `State` and `Prover` traits from `wallet-core`

[#235]: https://github.com/dusk-network/wallet-cli/issues/235
[#231]: https://github.com/dusk-network/wallet-cli/issues/231
[#226]: https://github.com/dusk-network/wallet-cli/issues/226
[#222]: https://github.com/dusk-network/wallet-cli/issues/222
Expand Down
2 changes: 1 addition & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ where
// check for connection errors
match con {
Err(Error::RocksDB(e)) => panic!{"Invalid cache {e}"},
Err(e) => warn!("Connection to Rusk Failed, some operations won't be available: {e}"),
Err(e) => warn!("[OFFLINE MODE]: Unable to connect to Rusk, limited functionality available: {e}"),
_ => {}
}

Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub enum Error {
#[error("Wallet file is missing")]
WalletFileMissing,
/// Wrong wallet password
#[error("Block Mode Error")]
#[error("Invalid password")]
BlockMode(#[from] block_modes::BlockModeError),
/// Reached the maximum number of attempts
#[error("Reached the maximum number of attempts")]
Expand Down

0 comments on commit 5d23b5f

Please sign in to comment.