Browse Source

CDB: fix debug output

It doesn't really help to clear a variable before printing it to the debug log.
0.14
crowning- 8 years ago committed by GitHub
parent
commit
fab2e26d20
  1. 2
      src/wallet/db.cpp

2
src/wallet/db.cpp

@ -284,7 +284,7 @@ CDB::CDB(const std::string& strFilename, const char* pszMode, bool fFlushOnClose
pdb = NULL; pdb = NULL;
--bitdb.mapFileUseCount[strFile]; --bitdb.mapFileUseCount[strFile];
strFile = ""; strFile = "";
throw runtime_error(strprintf("CDB: Error %d, can't open database %s", ret, strFile)); throw runtime_error(strprintf("CDB: Error %d, can't open database %s", ret, strFilename));
} }
if (fCreate && !Exists(string("version"))) { if (fCreate && !Exists(string("version"))) {

Loading…
Cancel
Save