1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 23:16:22 +00:00

go mod and vendor update

This commit is contained in:
galal-hussein
2019-08-20 22:49:24 +02:00
committed by Alena Prokharchyk
parent 9937142abb
commit 26e2979d20
63 changed files with 149 additions and 10301 deletions

View File

@@ -207,11 +207,11 @@ func (errs Errors) MarshalJSON() ([]byte, error) {
for _, daErr := range errs {
var err Error
switch daErr.(type) {
switch daErr := daErr.(type) {
case ErrorCode:
err = daErr.(ErrorCode).WithDetail(nil)
err = daErr.WithDetail(nil)
case Error:
err = daErr.(Error)
err = daErr
default:
err = ErrorCodeUnknown.WithDetail(daErr)