Merge PR #3725: Fixed errcheck

This commit is contained in:
Sunny Aggarwal 2019-02-25 03:35:06 -08:00 committed by Christopher Goes
parent 3eb0acda88
commit 21bdecafeb
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ func ExportCmd(ctx *Context, cdc *codec.Codec, appExporter AppExporter) *cobra.C
}
if emptyState || appExporter == nil {
fmt.Fprintln(os.Stderr, "WARNING: State is not initialized. Returning genesis file.")
_, err := fmt.Fprintln(os.Stderr, "WARNING: State is not initialized. Returning genesis file.")
if err != nil {
return err
}
genesis, err := ioutil.ReadFile(config.GenesisFile())
if err != nil {
return err