Browse Source

Merge pull request #2735 from chriseth/databaseErrorMessages

More detailed error messages.
cl-refactor
Gav Wood 10 years ago
parent
commit
8f03279adf
  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