Skip to content

Commit 91c7264

Browse files
committed
fix: use value dereference for v2error.Error with %w
Signed-off-by: Sharath P J <pjsharath28@gmail.com>
1 parent 7defdea commit 91c7264

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/etcdserver/api/v2store/store.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ func (s *store) Update(nodePath string, newValue string, expireOpts TTLOptionSet
535535
eNode := e.Node
536536

537537
if err := n.Write(newValue, nextIndex); err != nil {
538-
return nil, fmt.Errorf("nodePath %v : %w", nodePath, err)
538+
return nil, fmt.Errorf("nodePath %v : %w", nodePath, *err)
539539
}
540540

541541
if n.IsDir() {

0 commit comments

Comments
 (0)