Skip to content

Commit 129429d

Browse files
committed
Merge pull request #3643
d54e819 Log warnings when bootstrap files are specified but cannot be opened (Wladimir J. van der Laan)
2 parents 256a71b + d54e819 commit 129429d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/init.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
338338
LogPrintf("Importing bootstrap.dat...\n");
339339
LoadExternalBlockFile(file);
340340
RenameOver(pathBootstrap, pathBootstrapOld);
341+
} else {
342+
LogPrintf("Warning: Could not open bootstrap file %s\n", pathBootstrap.string());
341343
}
342344
}
343345

@@ -346,8 +348,10 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
346348
FILE *file = fopen(path.string().c_str(), "rb");
347349
if (file) {
348350
CImportingNow imp;
349-
LogPrintf("Importing %s...\n", path.string());
351+
LogPrintf("Importing blocks file %s...\n", path.string());
350352
LoadExternalBlockFile(file);
353+
} else {
354+
LogPrintf("Warning: Could not open blocks file %s\n", path.string());
351355
}
352356
}
353357
}

0 commit comments

Comments
 (0)