Skip to content

Commit

Permalink
Merge PR #3725: Fixed errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 authored and cwgoes committed Feb 25, 2019
1 parent 3eb0acd commit 21bdeca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21bdeca

Please sign in to comment.