commit | dbee47833727c5f200dea16ca1108535b26518bc | [log] [tgz] |
---|---|---|
author | Ash Wilson <smashwilson@gmail.com> | Wed Jun 24 09:57:32 2015 -0400 |
committer | Ash Wilson <smashwilson@gmail.com> | Wed Jun 24 09:57:32 2015 -0400 |
tree | 4868a660fae7a47fb6f0ce60d25501d034acae2c | |
parent | ae551431bbc5f4ec6f207eb2086305eca3bd1d86 [diff] |
Return the CreateResult's error, if one is present.
diff --git a/rackspace/lb/v1/nodes/results.go b/rackspace/lb/v1/nodes/results.go index 916485f..57835dc 100644 --- a/rackspace/lb/v1/nodes/results.go +++ b/rackspace/lb/v1/nodes/results.go
@@ -126,6 +126,9 @@ // ExtractNodes extracts a slice of Node structs from a CreateResult. func (res CreateResult) ExtractNodes() ([]Node, error) { + if res.Err != nil { + return nil, res.Err + } return commonExtractNodes(res.Body) }