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

go mod changes

This commit is contained in:
Murali Paluru
2019-10-30 12:48:32 -07:00
committed by Alena Prokharchyk
parent a1ec25375c
commit 995fa72fe2
54 changed files with 7629 additions and 356 deletions

View File

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