From c372dc2bf9214227a6cfcb0ddf2c1d190a36bffd Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 6 Aug 2015 10:20:03 +0200 Subject: [PATCH] More detailed error messages. --- libethereum/BlockChain.cpp | 7 ++++++- libethereum/State.cpp | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libethereum/BlockChain.cpp b/libethereum/BlockChain.cpp index 3834e2786..230eb39eb 100644 --- a/libethereum/BlockChain.cpp +++ b/libethereum/BlockChain.cpp @@ -216,7 +216,12 @@ unsigned BlockChain::openDatabase(std::string const& _path, WithExisting _we) } else { - cwarn << "Database already open. You appear to have another instance of ethereum running. Bailing."; + cwarn << + "Database " << + (chainPath + "/blocks") << + "or " << + (extrasPath + "/extras") << + "already open. You appear to have another instance of ethereum running. Bailing."; BOOST_THROW_EXCEPTION(DatabaseAlreadyOpen()); } } diff --git a/libethereum/State.cpp b/libethereum/State.cpp index 07390a192..955646f04 100644 --- a/libethereum/State.cpp +++ b/libethereum/State.cpp @@ -102,7 +102,10 @@ OverlayDB State::openDB(std::string const& _basePath, h256 const& _genesisHash, else { cwarn << status.ToString(); - cwarn << "Database already open. You appear to have another instance of ethereum running. Bailing."; + cwarn << + "Database " << + (path + "/state") << + "already open. You appear to have another instance of ethereum running. Bailing."; BOOST_THROW_EXCEPTION(DatabaseAlreadyOpen()); } }