Use `github.com/pkg/errors` to replace `fmt.Errorf` and `"errors"` (#2780)
* turn to use pkg/errors rather than fmt or errors Signed-off-by:YangKeao <yangkeao@chunibyo.icu> * use wrap to wrap the error Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> * fix CI and test Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> * restore yarn.lock Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> * replace "is empty" to "is required" in webhook message Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> * make check! Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> * use container with id Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> * replace errors.Errorf Signed-off-by:
YangKeao <yangkeao@chunibyo.icu> Co-authored-by:
STRRL <str_ruiling@outlook.com>
Showing
+102 -41
api/v1alpha1/common_errors.go
0 → 100644
api/webhook/errors.go
0 → 100644
Please register or sign in to comment