From c68b768915e3ddb4d0690023607b14bb7ff406b0 Mon Sep 17 00:00:00 2001 From: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> Date: Tue, 3 Oct 2023 23:09:07 +0530 Subject: [PATCH] fix: error handling in start relay command (#188) * fix: error handling for relay start command * chore: bump cli version --- cli/commands/bridge/relays/ibc.go | 9 ++++++++- cli/common/constants.go | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cli/commands/bridge/relays/ibc.go b/cli/commands/bridge/relays/ibc.go index e5a1d6bb..ddb307ea 100644 --- a/cli/commands/bridge/relays/ibc.go +++ b/cli/commands/bridge/relays/ibc.go @@ -83,7 +83,10 @@ func startIbcRelay(diveContext *common.DiveContext, enclaveContext *enclaves.Enc } if chainA == "icon" { - startIbcRelayIconToCosmos(diveContext, enclaveContext, common.RelayServiceNameIconToCosmos) + _, err := startIbcRelayIconToCosmos(diveContext, enclaveContext, common.RelayServiceNameIconToCosmos) + if err != nil { + diveContext.FatalError("Starlark Run Failed", err.Error()) + } } return starlarkExecutionResponse @@ -94,6 +97,10 @@ func startIbcRelayIconToCosmos(diveContext *common.DiveContext, enclaveContext * executionData, _, err := enclaveContext.RunStarlarkRemotePackage(diveContext.Ctx, common.DiveRemotePackagePath, "services/bridges/ibc/src/bridge.star", "start_relay", params, false, 4, []kurtosis_core_rpc_api_bindings.KurtosisFeatureFlag{}) + if err != nil { + return "", err + } + executionSerializedData, services, _, err := diveContext.GetSerializedData(executionData) if err != nil { diff --git a/cli/common/constants.go b/cli/common/constants.go index 0fa423cd..483ff99e 100644 --- a/cli/common/constants.go +++ b/cli/common/constants.go @@ -3,7 +3,7 @@ package common var DiveLogs bool // !!!!!!!!!!! DO NOT UPDATE! WILL BE UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!! -var DiveVersion = "v0.0.10-beta" +var DiveVersion = "v0.0.11-beta" const ( DiveEnclave = "dive"