diff options
| author | Jeff Garzik <[email protected]> | 2012-05-22 15:23:17 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-22 15:23:17 -0400 |
| commit | 8fe791e4e2db4b66f47d44d2ecaf734e2a36e5ed (patch) | |
| tree | 7cfbbcc8c0dd418f852e4de9618d3d241163d5b3 /src/main.cpp | |
| parent | Prevent crashes due to missing or corrupted database records (diff) | |
| download | discoin-8fe791e4e2db4b66f47d44d2ecaf734e2a36e5ed.tar.xz discoin-8fe791e4e2db4b66f47d44d2ecaf734e2a36e5ed.zip | |
Prevent crashes due to missing or corrupted blk????.dat records
In LoadExternalBlockFile(), errors are already caught... silently.
Add a warning message, even though we do not abort the program due to
load error.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index b925f8d5d..388947e48 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2133,8 +2133,9 @@ bool LoadExternalBlockFile(FILE* fileIn) } } } - catch (std::exception &e) - { + catch (std::exception &e) { + printf("%s() : Deserialize or I/O error caught during load\n", + __PRETTY_FUNCTION__); } } printf("Loaded %i blocks from external file\n", nLoaded); |