Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 9cd8c84

Browse files
committed
Return error when node not found.
1 parent e93b53f commit 9cd8c84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rackspace/lb/v1/nodes/requests.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ func GetByIPPort(
279279
})
280280

281281
// TODO: When found is nil, return an error
282+
if found == nil {
283+
return nil, errors.New("Unable to get node by IP and Port")
284+
}
282285

283286
return found, nil
284287
}

0 commit comments

Comments
 (0)