fix: undefined er (#1039)

This commit is contained in:
Andrea Falzetti 2020-02-19 16:20:06 +00:00 committed by GitHub
parent 89c7ffb512
commit 21cab29ef9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.