File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ var yugabyteMigrateCmd = &cli.Command{
290290 if err != nil && errors .Is (err , migrations .ErrMissingMinerAddr ) {
291291 msg := "You must set the miner-address flag to do the migration. " +
292292 "Set it to the address of the storage miner eg f1234"
293- return fmt .Errorf (msg )
293+ return fmt .Errorf ("%s" , msg )
294294 }
295295 return err
296296 },
@@ -368,7 +368,9 @@ var yugabyteAddIndexCmd = &cli.Command{
368368 if err != nil {
369369 return fmt .Errorf ("couldn't open file: %s" , err )
370370 }
371- defer reader .Close ()
371+ defer func () {
372+ _ = reader .Close ()
373+ }()
372374
373375 opts := []carv2.Option {carv2 .ZeroLengthSectionAsEOF (true )}
374376 blockReader , err := carv2 .NewBlockReader (reader , opts ... )
You can’t perform that action at this time.
0 commit comments