From ee7b895697dcd2d279efaca2e623e2a433b6af85 Mon Sep 17 00:00:00 2001 From: Francisco Moura Date: Mon, 9 Sep 2024 21:56:43 -0300 Subject: [PATCH] chore(validator): Add missing cmd flag check --- cmd/cartesi-rollups-validator/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cartesi-rollups-validator/main.go b/cmd/cartesi-rollups-validator/main.go index f76603665..42c7370b1 100644 --- a/cmd/cartesi-rollups-validator/main.go +++ b/cmd/cartesi-rollups-validator/main.go @@ -51,7 +51,8 @@ func init() { Cmd.Flags().StringVarP(&postgresEndpoint, "postgres-endpoint", "p", "", "Postgres endpoint") Cmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "enable verbose logging") - Cmd.MarkFlagRequired("input-box-block-number") + err := Cmd.MarkFlagRequired("input-box-block-number") + cobra.CheckErr(err) } func main() {