Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Correctly report errors from wallet's load, save, delete log operations #52

Merged

Conversation

mzabaluev
Copy link
Contributor

Removed lots of .unwrap() from file I/O operations in methods of Wallet and Wallets, returning errors instead for graceful reporting.

Mikhail Zabaluev added 7 commits November 5, 2018 19:23
Mirror the style used by other subcommand modules.
Add more variants to wallet::Error as appropriate.
Consistently report and handle errors of Wallet::load, Wallet::save, and
Wallet::delete_log.
Correctly handle I/O operation failures in Wallets::load().
Also, don't panic on invalid UTF-8 in file names: it can happen.
Apply the same behavior as for other bad directory entry cases.
The changes in commit 71638d4
over-eagerly made it a failible offence to miss the public key file.
Revert that.
If there is a problem loading one wallet, we log a warning and continue.
@mzabaluev
Copy link
Contributor Author

This goes towards fixing #39.

@NicolasDP NicolasDP merged commit d97cf0d into input-output-hk:master Nov 6, 2018
@NicolasDP NicolasDP added this to the alpha3 milestone Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants