diff options
| author | Ben Woosley <[email protected]> | 2018-04-18 09:58:13 -0400 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-04-18 18:43:12 -0400 |
| commit | e4d0b44373c75a597c21a0e93698364fc33fb79d (patch) | |
| tree | 0c952fb20dbe102e0014617af79e453c6d4f6587 /src/test/test_bitcoin.cpp | |
| parent | Merge #12985: Windows: Avoid launching as admin when NSIS installer ends. (diff) | |
| download | discoin-e4d0b44373c75a597c21a0e93698364fc33fb79d.tar.xz discoin-e4d0b44373c75a597c21a0e93698364fc33fb79d.zip | |
Consistently log CValidationState on failure
Seems providing at least minimal visibility to the failure is a good practice.
The only remaining ignored state is in LoadExternalBlockFile, where logging
would likely be spammy.
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index b72df1604..e9873f452 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -85,7 +85,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha { CValidationState state; if (!ActivateBestChain(state, chainparams)) { - throw std::runtime_error("ActivateBestChain failed."); + throw std::runtime_error(strprintf("ActivateBestChain failed. (%s)", FormatStateMessage(state))); } } nScriptCheckThreads = 3; |