diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-15 06:43:00 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-15 06:43:10 +0800 |
commit | b71091e337fef7e3cfad56c61c97a42094e87531 (patch) | |
tree | e3945e86e63714aeb77569cca28329a73de608d7 /core/error.go | |
parent | 0f76a1c6df44bc3242a64e76bef66dfe312d259b (diff) | |
download | go-tangerine-b71091e337fef7e3cfad56c61c97a42094e87531.tar.gz go-tangerine-b71091e337fef7e3cfad56c61c97a42094e87531.tar.zst go-tangerine-b71091e337fef7e3cfad56c61c97a42094e87531.zip |
eth, eth/downloader, miner: use download events to check miner start
Diffstat (limited to 'core/error.go')
-rw-r--r-- | core/error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/error.go b/core/error.go index 40db99ecd..2bdad364f 100644 --- a/core/error.go +++ b/core/error.go @@ -42,8 +42,8 @@ func (err *UncleErr) Error() string { return err.Message } -func UncleError(str string) error { - return &UncleErr{Message: str} +func UncleError(format string, v ...interface{}) error { + return &UncleErr{Message: fmt.Sprintf(format, v...)} } func IsUncleErr(err error) bool { |