aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-28 19:35:17 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-28 21:03:20 +0800
commite588e0ca2b3b615af0ecfd5679c42df8f1cc4272 (patch)
treec37e95792ed9f17209b7de26a5d6047ac915db2a /console
parentd4f60d362b8fcf82db1accf89c146a2a71375841 (diff)
downloadgo-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.gz
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.bz2
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.lz
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.xz
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.zst
go-tangerine-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.zip
all: next batch of log polishes to contextual versions
Diffstat (limited to 'console')
-rw-r--r--console/bridge.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/console/bridge.go b/console/bridge.go
index 81f216d1d..6db54eb21 100644
--- a/console/bridge.go
+++ b/console/bridge.go
@@ -305,7 +305,7 @@ func setError(resp *otto.Object, code int, msg string) {
func throwJSException(msg interface{}) otto.Value {
val, err := otto.ToValue(msg)
if err != nil {
- log.Error(fmt.Sprintf("Failed to serialize JavaScript exception %v: %v", msg, err))
+ log.Error("Failed to serialize JavaScript exception", "exception", msg, "err", err)
}
panic(val)
}