From 7e46c3df59b7967c95649fb749b4af54e847817a Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:40:26 +0400 Subject: [PATCH] chore: update error handling --- cmd/rollapp/init/init.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/rollapp/init/init.go b/cmd/rollapp/init/init.go index 9cbea5ff..362b1c32 100644 --- a/cmd/rollapp/init/init.go +++ b/cmd/rollapp/init/init.go @@ -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 { @@ -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 }