aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_errors.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-12-18 12:14:26 +0200
committerRiccardo Spagni <ric@spagni.net>2015-12-18 12:15:01 +0200
commit45249d92a76a1adef2fb856e04dc07386fe61bcf (patch)
tree49301d5ac9e4495d005588fffecf7470ff5d759a /src/wallet/wallet_errors.h
parentf7d41d6e284ffc906b462ec731d75cfd3adc33a8 (diff)
parent9b4f8b4b7ed6a22b9fa6a3b1d10210d21084cb5b (diff)
downloadmonzero-core-45249d92a76a1adef2fb856e04dc07386fe61bcf.tar.gz
monzero-core-45249d92a76a1adef2fb856e04dc07386fe61bcf.tar.xz
monzero-core-45249d92a76a1adef2fb856e04dc07386fe61bcf.zip
Merge pull request #542
9b4f8b4 wallet: save to a temporary file, then rename (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_errors.h')
-rw-r--r--src/wallet/wallet_errors.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h
index 94518e691..dd13343ed 100644
--- a/src/wallet/wallet_errors.h
+++ b/src/wallet/wallet_errors.h
@@ -192,6 +192,12 @@ namespace tools
{
}
+ explicit file_error_base(std::string&& loc, const std::string& file, const std::error_code &e)
+ : wallet_logic_error(std::move(loc), std::string(file_error_messages[msg_index]) + " \"" + file + "\": " + e.message())
+ , m_file(file)
+ {
+ }
+
const std::string& file() const { return m_file; }
std::string to_string() const { return wallet_logic_error::to_string(); }