You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.Errorf("invalid availability %q, only active, pause and drain are supported", opts.availability)
91
+
returnfmt.Errorf("invalid availability %q, only active, pause and drain are supported", opts.availability)
93
92
}
94
93
}
95
94
96
95
nodeID, err:=apiClient.SwarmInit(ctx, req)
97
96
iferr!=nil {
98
97
ifstrings.Contains(err.Error(), "could not choose an IP address to advertise") ||strings.Contains(err.Error(), "could not find the system's IP address") {
99
-
returnerrors.New(err.Error() +" - specify one with --advertise-addr")
98
+
returnfmt.Errorf("%w - specify one with --advertise-addr", err)
0 commit comments