Skip to content

Commit

Permalink
add error checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Apr 19, 2024
1 parent 01794ce commit 344c256
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/zetacored/parse_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ func CmdParseGenesisFile() *cobra.Command {
genesisFilePath = args[1]
}
genDoc, err := GetGenDoc(genesisFilePath)
if err != nil {
return err
}
importData, err := GetGenDoc(args[0])

if err != nil {
return err
}
err = ImportDataIntoFile(genDoc, importData, cdc)
if err != nil {
return err
Expand Down

0 comments on commit 344c256

Please sign in to comment.