aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
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)
}