Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Oct 18, 2022
1 parent d7bae7d commit e0c6446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/runtime/storage/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (s *TrieState) Delete(key []byte) (err error) {
defer s.lock.Unlock()
err = s.t.Delete(key)
if err != nil {
return err
return fmt.Errorf("deleting from trie: %w", err)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion lib/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ func (t *Trie) Delete(keyLE []byte) (err error) {
key := codec.KeyLEToNibbles(keyLE)
root, _, _, err := t.deleteAtNode(t.root, key, pendingDeletedMerkleValues)
if err != nil {
return err
return fmt.Errorf("deleting key %x: %w", keyLE, err)
}
t.root = root
return nil
Expand Down

0 comments on commit e0c6446

Please sign in to comment.