Skip to content

Commit

Permalink
Merge pull request #108 from koinos/hex-error-message
Browse files Browse the repository at this point in the history
Change error message from logging base58 to hex
  • Loading branch information
sgerbino committed Mar 3, 2022
2 parents 0155ff1 + cfde16e commit 6ea2613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/bstore/reqhandler.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package bstore

import (
"encoding/hex"
"errors"
"fmt"
"math/bits"

base58 "github.com/btcsuite/btcutil/base58"
log "github.com/koinos/koinos-log-golang"
"github.com/koinos/koinos-proto-golang/koinos"
"github.com/koinos/koinos-proto-golang/koinos/rpc"
Expand Down Expand Up @@ -52,7 +52,7 @@ type BlockNotPresent struct {
}

func (e *BlockNotPresent) Error() string {
return fmt.Sprintf("Block not present - ID: %v", base58.Encode(e.blockID))
return fmt.Sprintf("Block not present - ID: 0x%v", hex.EncodeToString(e.blockID))
}

// DeserializeError is an error type for errors during deserialization
Expand Down

0 comments on commit 6ea2613

Please sign in to comment.