Browse Source

More detailed error messages.

cl-refactor
chriseth 9 years ago
parent
commit
c372dc2bf9
  1. 7
      libethereum/BlockChain.cpp
  2. 5
      libethereum/State.cpp

7
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());
}
}

5
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());
}
}

Loading…
Cancel
Save