Skip to content

Commit bc11fd8

Browse files
committed
Return the errors
1 parent 9c6623d commit bc11fd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ func (nd *Node) requestInfo(timeout time.Duration, name ...string) (response map
807807
if err != nil {
808808
conn.Close()
809809
}
810-
return nil
810+
return err
811811
}); errCall != nil {
812812
return nil, errCall
813813
}
@@ -823,7 +823,7 @@ func (nd *Node) requestRawInfo(policy *InfoPolicy, name ...string) (response *in
823823
if err != nil {
824824
conn.Close()
825825
}
826-
return nil
826+
return err
827827
}); errCall != nil {
828828
return nil, errCall
829829
}

0 commit comments

Comments
 (0)