Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error messages typo #445

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/kt/command/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func Connect() error {
} else if opt.Get().Connect.Mode == util.ConnectModeShuttle {
err = connect.BySshuttle()
} else {
err = fmt.Errorf("invalid connect mode: '%s', supportted mode are %s, %s", opt.Get().Connect.Mode,
err = fmt.Errorf("invalid connect mode: '%s', supported mode are %s, %s", opt.Get().Connect.Mode,
util.ConnectModeTun2Socks, util.ConnectModeShuttle)
}
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/kt/command/connect/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func setupDns(shadowPodName, shadowPodIp string) error {
}
return dns.SetNameServer(fmt.Sprintf("%s:%d", common.Localhost, dnsPort))
} else {
return fmt.Errorf("invalid dns mode: '%s', supportted mode are %s, %s, %s", opt.Get().Connect.DnsMode,
return fmt.Errorf("invalid dns mode: '%s', supported mode are %s, %s, %s", opt.Get().Connect.DnsMode,
util.DnsModeLocalDns, util.DnsModePodDns, util.DnsModeHosts)
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/kt/command/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Exchange(resourceName string) error {
} else if opt.Get().Exchange.Mode == util.ExchangeModeSelector {
err = exchange.BySelector(resourceName)
} else {
err = fmt.Errorf("invalid exchange method '%s', supportted are %s, %s, %s", opt.Get().Exchange.Mode,
err = fmt.Errorf("invalid exchange method '%s', supported are %s, %s, %s", opt.Get().Exchange.Mode,
util.ExchangeModeSelector, util.ExchangeModeScale, util.ExchangeModeEphemeral)
}
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/kt/command/mesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func Mesh(resourceName string) error {
} else if opt.Get().Mesh.Mode == util.MeshModeAuto {
err = mesh.AutoMesh(svc)
} else {
err = fmt.Errorf("invalid mesh method '%s', supportted are %s, %s", opt.Get().Mesh.Mode,
err = fmt.Errorf("invalid mesh method '%s', supported are %s, %s", opt.Get().Mesh.Mode,
util.MeshModeAuto, util.MeshModeManual)
}
if err != nil {
Expand Down