File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -218,14 +218,10 @@ void HandleError(const leveldb::Status& status)
218
218
{
219
219
if (status.ok ())
220
220
return ;
221
- LogPrintf (" %s\n " , status.ToString ());
222
- if (status.IsCorruption ())
223
- throw dbwrapper_error (" Database corrupted" );
224
- if (status.IsIOError ())
225
- throw dbwrapper_error (" Database I/O error" );
226
- if (status.IsNotFound ())
227
- throw dbwrapper_error (" Database entry missing" );
228
- throw dbwrapper_error (" Unknown database error" );
221
+ const std::string errmsg = " Fatal LevelDB error: " + status.ToString ();
222
+ LogPrintf (" %s\n " , errmsg);
223
+ LogPrintf (" You can use -debug=leveldb to get more complete diagnostic messages\n " );
224
+ throw dbwrapper_error (errmsg);
229
225
}
230
226
231
227
const std::vector<unsigned char >& GetObfuscateKey (const CDBWrapper &w)
You can’t perform that action at this time.
0 commit comments