git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 096148fb99184a312360d7114166031362ecc54b

Kernel: more verbose error messages

Alex Beregszaszi committed on 8/23/2016, 12:27:46 AM
Parent: 20390909a4485d06cd4a720d5f69fc9deca7a9b3

Files changed

index.jschanged
index.jsView
@@ -66,9 +66,9 @@
6666 // Detects if transcompilation is needed
6767 callHandler (call) {
6868 let account = this.environment.state.get(call.to.toString())
6969 if (!account) {
70- throw new Error('Account not found')
70+ throw new Error('Account not found: ' + call.to.toString())
7171 }
7272
7373 const code = Uint8Array.from(account.get('code'))
7474 if (code.length === 0) {
@@ -139,9 +139,9 @@
139139
140140 // look up sender
141141 let fromAccount = this.environment.state.get(tx.from.toString())
142142 if (!fromAccount) {
143- throw new Error('Sender account not found')
143+ throw new Error('Sender account not found: ' + tx.from.toString())
144144 }
145145
146146 // Special case: contract deployment
147147 if (tx.to.isZero()) {

Built with git-ssb-web