Skip to content

Commit 3ce0936

Browse files
committed
fix docker test
1 parent 73d2de3 commit 3ce0936

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extern/boostd-data/cmd/run.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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...)

0 commit comments

Comments
 (0)