From 9722b3baf9ea4be7bcbb7c3b495d6087d541b6e3 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 20 Feb 2020 15:40:00 +0300 Subject: [PATCH] wallets manager: minor improvements in exceptions' handling --- src/wallet/wallets_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallets_manager.cpp b/src/wallet/wallets_manager.cpp index 49e036ef..377795d5 100644 --- a/src/wallet/wallets_manager.cpp +++ b/src/wallet/wallets_manager.cpp @@ -755,7 +755,7 @@ std::string wallets_manager::generate_wallet(const std::wstring& path, const std { w->generate(path, password); } - catch (const tools::error::file_exists/*& e*/) + catch (const tools::error::file_exists&) { return API_RETURN_CODE_ALREADY_EXISTS; } @@ -830,7 +830,7 @@ std::string wallets_manager::restore_wallet(const std::wstring& path, const std: { w->restore(path, password, restore_key); } - catch (const tools::error::file_exists/*& e*/) + catch (const tools::error::file_exists&) { return API_RETURN_CODE_ALREADY_EXISTS; }