Improve error string and remove unneeded else clause

This commit is contained in:
Gustav Simonsson
2015-08-28 03:42:01 +02:00
parent 829201382b
commit d9addf79fa
3 changed files with 6 additions and 7 deletions

View File

@ -565,7 +565,7 @@ func (self *ethApi) GetWork(req *shared.Request) (interface{}, error) {
self.xeth.SetMining(true, 0)
ret, err := self.xeth.RemoteMining().GetWork()
if err != nil {
return nil, shared.NewNotReadyError("getWork")
return nil, shared.NewNotReadyError("mining work")
} else {
return ret, nil
}