From 21cab29ef902d36da074e8c940437c9f536b2283 Mon Sep 17 00:00:00 2001 From: Andrea Falzetti Date: Wed, 19 Feb 2020 16:20:06 +0000 Subject: [PATCH] fix: undefined er (#1039) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 834f287..2f8175b 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,7 @@ package cmd import ( "fmt" + "os" homedir "github.com/mitchellh/go-homedir" "github.com/spf13/cobra" @@ -255,6 +256,11 @@ func init() { rootCmd.AddCommand(initCmd) } +func er(msg interface{}) { + fmt.Println("Error:", msg) + os.Exit(1) +} + func initConfig() { if cfgFile != "" { // Use config file from the flag.