mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
[kubeadm/app/..add other packages]Switch to github.com/pkg/errors
This commit is contained in:
@@ -18,11 +18,11 @@ package preflight
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/renstrom/dedent"
|
||||
|
||||
"net/http"
|
||||
@@ -173,12 +173,12 @@ func (pfct preflightCheckTest) Name() string {
|
||||
return "preflightCheckTest"
|
||||
}
|
||||
|
||||
func (pfct preflightCheckTest) Check() (warning, errors []error) {
|
||||
func (pfct preflightCheckTest) Check() (warning, errorList []error) {
|
||||
if pfct.msg == "warning" {
|
||||
return []error{fmt.Errorf("warning")}, nil
|
||||
return []error{errors.New("warning")}, nil
|
||||
}
|
||||
if pfct.msg != "" {
|
||||
return nil, []error{fmt.Errorf("fake error")}
|
||||
return nil, []error{errors.New("fake error")}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user