mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
Script: Make a ScriptException message more elaborate.
This commit is contained in:
parent
c6a096678d
commit
0b7bdff6de
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ public class Script {
|
|||
chunk = new ScriptChunk(opcode, null);
|
||||
} else {
|
||||
if (dataToRead > bis.available())
|
||||
throw new ScriptException(ScriptError.SCRIPT_ERR_BAD_OPCODE, "Push of data element that is larger than remaining data");
|
||||
throw new ScriptException(ScriptError.SCRIPT_ERR_BAD_OPCODE, "Push of data element that is larger than remaining data: " + dataToRead + " vs " + bis.available());
|
||||
byte[] data = new byte[(int)dataToRead];
|
||||
checkState(dataToRead == 0 || bis.read(data, 0, (int)dataToRead) == dataToRead);
|
||||
chunk = new ScriptChunk(opcode, data);
|
||||
|
|
Loading…
Add table
Reference in a new issue