From b71091e337fef7e3cfad56c61c97a42094e87531 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 15 May 2015 00:43:00 +0200 Subject: eth, eth/downloader, miner: use download events to check miner start --- core/error.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/error.go') 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 { -- cgit v1.2.3