Commit 096148fb99184a312360d7114166031362ecc54b
Kernel: more verbose error messages
Alex Beregszaszi committed on 8/23/2016, 12:27:46 AMParent: 20390909a4485d06cd4a720d5f69fc9deca7a9b3
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -66,9 +66,9 @@ | ||
66 | 66 | // Detects if transcompilation is needed |
67 | 67 | callHandler (call) { |
68 | 68 | let account = this.environment.state.get(call.to.toString()) |
69 | 69 | if (!account) { |
70 | - throw new Error('Account not found') | |
70 | + throw new Error('Account not found: ' + call.to.toString()) | |
71 | 71 | } |
72 | 72 | |
73 | 73 | const code = Uint8Array.from(account.get('code')) |
74 | 74 | if (code.length === 0) { |
@@ -139,9 +139,9 @@ | ||
139 | 139 | |
140 | 140 | // look up sender |
141 | 141 | let fromAccount = this.environment.state.get(tx.from.toString()) |
142 | 142 | if (!fromAccount) { |
143 | - throw new Error('Sender account not found') | |
143 | + throw new Error('Sender account not found: ' + tx.from.toString()) | |
144 | 144 | } |
145 | 145 | |
146 | 146 | // Special case: contract deployment |
147 | 147 | if (tx.to.isZero()) { |
Built with git-ssb-web