Browse Source

Slightly more useful errors in the case of upgrade failure.

cl-refactor
Gav Wood 10 years ago
parent
commit
136bd963d4
  1. 6
      libethereum/Utility.cpp

6
libethereum/Utility.cpp

@ -125,9 +125,13 @@ void dev::eth::upgradeDatabase(std::string const& _basePath)
} }
} }
} }
catch (Exception& ex)
{
cwarn << "Couldn't upgrade: " << ex.what() << boost::diagnostic_information(ex);
}
catch (...) catch (...)
{ {
cwarn << "Couldn't upgrade - bad status"; cwarn << "Couldn't upgrade. Some issue with moving files around. Probably easiest just to redownload.";
} }
fs::rename(path + "/status", path + "/status.old"); fs::rename(path + "/status", path + "/status.old");

Loading…
Cancel
Save