diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-17 10:58:55 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-17 10:59:03 +0100 |
commit | 129429dd8f6dfcb76fa1a481b91c06e36808523d (patch) | |
tree | eac89809ca31bb0ba034cbe1d3c893552ce4067f /src/init.cpp | |
parent | 256a71b835eb0f0d9332c015dfb46dd695dfc971 (diff) | |
parent | d54e819f65c193aaa018df6612257e84b6565c84 (diff) |
Merge pull request #3643
d54e819 Log warnings when bootstrap files are specified but cannot be opened (Wladimir J. van der Laan)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index a2c07c9f66..9ba77105b4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -338,6 +338,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles) LogPrintf("Importing bootstrap.dat...\n"); LoadExternalBlockFile(file); RenameOver(pathBootstrap, pathBootstrapOld); + } else { + LogPrintf("Warning: Could not open bootstrap file %s\n", pathBootstrap.string()); } } @@ -346,8 +348,10 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles) FILE *file = fopen(path.string().c_str(), "rb"); if (file) { CImportingNow imp; - LogPrintf("Importing %s...\n", path.string()); + LogPrintf("Importing blocks file %s...\n", path.string()); LoadExternalBlockFile(file); + } else { + LogPrintf("Warning: Could not open blocks file %s\n", path.string()); } } } |