aboutsummaryrefslogtreecommitdiffstats
path: root/eth/tracers
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2018-07-30 17:30:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-07-30 17:30:09 +0800
commitd42ce0f2c1b52e26cce475e411d97165fb975577 (patch)
tree03043c37becf49145b23f4824f563e3443335698 /eth/tracers
parent273c7a9dc4e8961e96e51bd8274436ff983a21ef (diff)
downloaddexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.gz
dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.zst
dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.zip
all: simplify switches (#17267)
* all: simplify switches * silly mistake
Diffstat (limited to 'eth/tracers')
-rw-r--r--eth/tracers/tracer.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/eth/tracers/tracer.go b/eth/tracers/tracer.go
index 4cec9e633..feb57e060 100644
--- a/eth/tracers/tracer.go
+++ b/eth/tracers/tracer.go
@@ -486,12 +486,7 @@ func (jst *Tracer) call(method string, args ...string) (json.RawMessage, error)
}
func wrapError(context string, err error) error {
- var message string
- switch err := err.(type) {
- default:
- message = err.Error()
- }
- return fmt.Errorf("%v in server-side tracer function '%v'", message, context)
+ return fmt.Errorf("%v in server-side tracer function '%v'", err, context)
}
// CaptureStart implements the Tracer interface to initialize the tracing operation.