aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-04-15 05:08:15 +0800
committerMaran <maran.hidskes@gmail.com>2014-04-15 05:08:15 +0800
commit91c75c9305e7554c21e84ed1a07ec0e750bb775a (patch)
treedc6a8983ffd5b2344f8adf45b45c0722c69804aa /ethereal/ui
parent28a48f1d9a751c00f6bf6be198fc30ad792abf6f (diff)
downloadgo-tangerine-91c75c9305e7554c21e84ed1a07ec0e750bb775a.tar.gz
go-tangerine-91c75c9305e7554c21e84ed1a07ec0e750bb775a.tar.zst
go-tangerine-91c75c9305e7554c21e84ed1a07ec0e750bb775a.zip
Adding log messages to debug panel
Diffstat (limited to 'ethereal/ui')
-rw-r--r--ethereal/ui/ui_lib.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go
index 86855290f..b2552cdce 100644
--- a/ethereal/ui/ui_lib.go
+++ b/ethereal/ui/ui_lib.go
@@ -102,6 +102,9 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
asm, err := mutan.Compile(strings.NewReader(mainInput), false)
if err != nil {
fmt.Println(err)
+ for _, e := range err {
+ ui.win.Root().Call("addDebugMessage", e.Error())
+ }
}
callerScript := ethutil.Assemble(asm...)