Skip to content

Commit

Permalink
chore: update error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Sep 5, 2024
1 parent 1643c76 commit 7e46c3d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/rollapp/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"encoding/json"
"fmt"

"github.com/pterm/pterm"
"github.com/spf13/cobra"

initconfig "github.com/dymensionxyz/roller/cmd/config/init"
"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/utils/bash"
"github.com/dymensionxyz/roller/utils/rollapp"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
)

func Cmd() *cobra.Command {
Expand Down Expand Up @@ -58,7 +59,7 @@ func Cmd() *cobra.Command {

isRollappRegistered, _ := rollapp.IsRollappRegistered(raID, hd)
if !isRollappRegistered {
pterm.Error.Printf("%s was not found as a registered rollapp", raID)
pterm.Error.Printf("%s was not found as a registered rollapp: %v", raID, err)
return
}

Expand Down

0 comments on commit 7e46c3d

Please sign in to comment.