mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 10:45:51 +00:00
Provide more opacity into exceptions.
This commit is contained in:
parent
939337b2db
commit
0ada33d2b1
@ -232,7 +232,7 @@ public class FullPrunedBlockChain extends AbstractBlockChain {
|
||||
throw new RuntimeException(thrownE); // Shouldn't happen
|
||||
} catch (ExecutionException thrownE) {
|
||||
log.error("Script.correctlySpends threw a non-normal exception: " + thrownE.getCause());
|
||||
throw new VerificationException("Bug in Script.correctlySpends, likely script malformed in some new and interesting way.");
|
||||
throw new VerificationException("Bug in Script.correctlySpends, likely script malformed in some new and interesting way.", thrownE);
|
||||
}
|
||||
if (e != null)
|
||||
throw e;
|
||||
@ -356,7 +356,7 @@ public class FullPrunedBlockChain extends AbstractBlockChain {
|
||||
throw new RuntimeException(thrownE); // Shouldn't happen
|
||||
} catch (ExecutionException thrownE) {
|
||||
log.error("Script.correctlySpends threw a non-normal exception: " + thrownE.getCause());
|
||||
throw new VerificationException("Bug in Script.correctlySpends, likely script malformed in some new and interesting way.");
|
||||
throw new VerificationException("Bug in Script.correctlySpends, likely script malformed in some new and interesting way.", thrownE);
|
||||
}
|
||||
if (e != null)
|
||||
throw e;
|
||||
|
@ -83,7 +83,7 @@ public class FullPrunedBlockChainTest {
|
||||
threw = true;
|
||||
if (!block.throwsException) {
|
||||
log.error("Block didn't match throws flag on block " + block.blockName);
|
||||
fail();
|
||||
throw e;
|
||||
}
|
||||
if (block.connects) {
|
||||
log.error("Block didn't match connects flag on block " + block.blockName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user