Skip to content

Commit

Permalink
chore: improve error handling messages
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Aug 5, 2024
1 parent 8e7fe60 commit 9b8717d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/rollapp/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func Cmd() *cobra.Command {
}
seqAddrInfo, err := utils.GetAddressInfoBinary(hubSeqKC, hubSeqKC.ChainBinary)
if err != nil {
pterm.Error.Println("failed to get address info: ", err)
return
}

Expand All @@ -112,6 +113,7 @@ func Cmd() *cobra.Command {
}, seqAddrInfo.Address,
)
if err != nil {
pterm.Error.Println("failed to get address balance: ", err)
return
}

Expand Down Expand Up @@ -293,6 +295,7 @@ func Cmd() *cobra.Command {
)

if !proceed {
pterm.Info.Println("exiting")
return
}
}
Expand Down

0 comments on commit 9b8717d

Please sign in to comment.