From 841a479cf4da0fdaf7c72a44997b9b52e43a85d8 Mon Sep 17 00:00:00 2001 From: Erich Kaestner <36450093+jdknives@users.noreply.github.com> Date: Fri, 29 Nov 2019 15:27:16 +0800 Subject: [PATCH] change error --- cmd/skywire-cli/commands/node/gen-config.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/skywire-cli/commands/node/gen-config.go b/cmd/skywire-cli/commands/node/gen-config.go index c774443a3e..170d6d505d 100644 --- a/cmd/skywire-cli/commands/node/gen-config.go +++ b/cmd/skywire-cli/commands/node/gen-config.go @@ -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.") @@ -212,5 +209,5 @@ func getLocalIPAddress() (string, error) { } } } - return "", ErrNoLocalIPFound + return "", errors.New("could not find local IP address") }