Skip to content

Commit

Permalink
chore: add err log
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Oct 25, 2024
1 parent ad2c6a2 commit 1c3ed77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions finality-provider/cmd/fpd/daemon/daemon_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ func runCommandAddFinalitySig(cmd *cobra.Command, args []string) error {
if err := cleanUp(); err != nil {
fmt.Printf("Failed to clean up grpc client: %v\n", err)
}
fmt.Printf("\nfinish to clean up")
}()

appHash, err := hex.DecodeString(appHashHex)
Expand All @@ -443,6 +444,7 @@ func runCommandAddFinalitySig(cmd *cobra.Command, args []string) error {

res, err := client.AddFinalitySignature(context.Background(), fpPk.MarshalHex(), blkHeight, appHash)
if err != nil {
fmt.Printf("\n err at AddFinalitySignature %w", err)

Check failure on line 447 in finality-provider/cmd/fpd/daemon/daemon_commands.go

View workflow job for this annotation

GitHub Actions / lint_test / lint

printf: fmt.Printf does not support error-wrapping directive %w (govet)

Check failure on line 447 in finality-provider/cmd/fpd/daemon/daemon_commands.go

View workflow job for this annotation

GitHub Actions / lint_test / unit-tests

fmt.Printf does not support error-wrapping directive %w
return err
}
printRespJSON(res)
Expand Down

0 comments on commit 1c3ed77

Please sign in to comment.