Skip to content

Commit

Permalink
fix: err handing (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
  • Loading branch information
tao12345666333 committed Oct 12, 2023
1 parent 6b79a6d commit 18e9759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func initConfig() {
if cfgFile == "" {
home, err := homedir.Dir()
if err != nil {
color.Red(err)
color.Red("Failed to get home dir: %s", err)
os.Exit(1)
}
viper.AddConfigPath(home)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/apisix/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type Route struct {
EnableWebsocket bool `json:"enable_websocket,omitempty" yaml:"enable_websocket,omitempty"`
RemoteAddr string `json:"remote_addr,omitempty" yaml:"remote_addr,omitempty"`
RemoteAddrs []string `json:"remote_addrs,omitempty" yaml:"remote_addrs,omitempty"`
Upstream *Upstream `json:"upstream,omitempty" yaml:"upstream,omitempty"`
Upstream *Upstream `json:"upstream,omitempty" yaml:"upstream,omitempty"`
UpstreamID string `json:"upstream_id,omitempty" yaml:"upstream_id,omitempty"`
ServiceID string `json:"service_id,omitempty" yaml:"service_id,omitempty"`
Plugins Plugins `json:"plugins,omitempty" yaml:"plugins,omitempty"`
Expand Down

0 comments on commit 18e9759

Please sign in to comment.