Remove GenericError.

This commit is contained in:
Qi Xiao 2016-02-20 21:12:54 +01:00
parent 385fccfcda
commit 6ee16abba0

View File

@ -2,7 +2,6 @@ package eval
import (
"bytes"
"errors"
"fmt"
"strings"
@ -32,11 +31,8 @@ func (e Error) Bool() bool {
return e.Inner == nil
}
// Common Error values.
var (
OK = Error{nil}
GenericFailure = Error{errors.New("generic failure")}
)
// OK is an alias for the zero value of Error.
var OK = Error{nil}
// multiError is multiple errors packed into one. It is used for reporting
// errors of pipelines, in which multiple forms may error.