From a6944be5cfade694df96953fad09e83a55177fbc Mon Sep 17 00:00:00 2001 From: Mark Travis Date: Wed, 31 Jul 2019 22:44:49 -0700 Subject: [PATCH] Clarify online delete data error message. --- src/ripple/app/misc/SHAMapStoreImp.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/ripple/app/misc/SHAMapStoreImp.cpp b/src/ripple/app/misc/SHAMapStoreImp.cpp index 3a4070cf5..082b8a236 100644 --- a/src/ripple/app/misc/SHAMapStoreImp.cpp +++ b/src/ripple/app/misc/SHAMapStoreImp.cpp @@ -512,18 +512,20 @@ SHAMapStoreImp::dbPaths() stateDbPathName /= dbName_; stateDbPathName += "*"; - journal_.error() << "state db error: " << std::endl + journal_.error() << "state db error:\n" << " writableDbExists " << writableDbExists - << " archiveDbExists " << archiveDbExists << std::endl + << " archiveDbExists " << archiveDbExists << '\n' << " writableDb '" << state.writableDb - << "' archiveDb '" << state.archiveDb << "'" - << std::endl << std::endl - << "To resume operation, make backups of and " - << "remove the files matching " + << "' archiveDb '" << state.archiveDb << "\n\n" + << "The existing data is in a corrupted state.\n" + << "To resume operation, remove the files matching " << stateDbPathName.string() << " and contents of the directory " - << dbPath - << std::endl; + << get(section, "path") << '\n' + << "Optionally, you can move those files to another\n" + << "location if you wish to analyze or back up the data.\n" + << "However, there is no guarantee that the data in its\n" + << "existing form is usable."; Throw ("state db error"); }