Skip to content

Commit

Permalink
change error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdknives committed Nov 29, 2019
1 parent 108f794 commit 841a479
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/skywire-cli/commands/node/gen-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ var (
testenv bool
)

// ErrNoLocalIPFound occurs when there is no non-loopback local IP address.
var ErrNoLocalIPFound = errors.New("could not find local IP address")

func init() {
genConfigCmd.Flags().StringVarP(&output, "output", "o", "", "path of output config file. Uses default of 'type' flag if unspecified.")
genConfigCmd.Flags().BoolVarP(&replace, "replace", "r", false, "whether to allow rewrite of a file that already exists.")
Expand Down Expand Up @@ -212,5 +209,5 @@ func getLocalIPAddress() (string, error) {
}
}
}
return "", ErrNoLocalIPFound
return "", errors.New("could not find local IP address")
}

0 comments on commit 841a479

Please sign in to comment.