Skip to content

Commit

Permalink
add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed May 31, 2022
1 parent c77afaa commit fd18406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/cronosd/cmd/reindex-duplicated-tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"os"
"runtime"
"strconv"
"sync"
Expand Down Expand Up @@ -121,6 +122,7 @@ func ReindexDuplicatedTx() *cobra.Command {
}

if err := processBlock(blockNum); err != nil {
fmt.Fprintf(os.Stderr, "process block failed: %d, %+v", blockNum, err)
cancel()
return
}
Expand Down

0 comments on commit fd18406

Please sign in to comment.