// PushAndDescribe behaves like Push but allows to prepend a text before
// the error messages returned by err. The type of err will be lost.
PushAndDescribe behaves like Push but allows to prepend a text before
the error messages returned by err. The type of err will be lost.
// PushAndDescribe behaves like Push but allows to prepend a text before // the error messages returned by err . The type of err will be lost .
func (stack *ErrorStack) PushAndDescribe(message string, err error) bool {
	if err != nil {
		stack.errors = append(stack.errors, fmt.Errorf(message+" %s", err.Error()))
		return true
	}
	return false
}
func ( stack * ErrorStack ) PushAndDescribe ( message string , err error ) bool { if err != nil { stack . errors = append ( stack . errors , fmt . Errorf ( message + " " , err . Error ( ) ) ) return true } return false }
PushAndDescribe behaves like Push but allows to prepend a text before
the error messages returned by err.
PushAndDescribe behaves like Push but allows to prepend a text before the error messages returned by err .