whisper: error type changed

This commit is contained in:
Vlad 2016-09-27 10:56:51 +02:00
parent 18ff2ad5f4
commit a7351ae20c

View file

@ -30,13 +30,7 @@ import (
"github.com/ethereum/go-ethereum/whisper/whisperv5"
)
type WhisperOfflineError struct{}
var whisperOffLineErr = new(WhisperOfflineError)
func (e *WhisperOfflineError) Error() string {
return "whisper is offline"
}
var whisperOffLineErr = errors.New("whisper is offline")
// PublicWhisperAPI provides the whisper RPC service.
type PublicWhisperAPI struct {