diff --git a/cmd/rofl/build.go b/cmd/rofl/build.go index 0387fb9a..842635aa 100644 --- a/cmd/rofl/build.go +++ b/cmd/rofl/build.go @@ -71,14 +71,10 @@ var ( case buildMode == buildModeAuto && !offline: ctx := context.Background() conn, err := connection.Connect(ctx, npa.Network) - if err != nil { - break // Autodetection failed. - } + cobra.CheckErr(err) params, err := conn.Consensus().Registry().ConsensusParameters(ctx, consensus.HeightLatest) - if err != nil { - break // Autodetection failed. - } + cobra.CheckErr(err) if params.DebugAllowTestRuntimes { buildMode = buildModeUnsafe