Skip to content

Commit

Permalink
fix: undefined er (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafalzetti authored Feb 19, 2020
1 parent 89c7ffb commit 21cab29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ package cmd

import (
"fmt"
"os"

homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 21cab29

Please sign in to comment.