Browse Source

Merge pull request #328 from wulonghui/wulonghui-patch-3

Update error return in bridge driver's getNetwork
Jana Radhakrishnan 10 years ago
parent
commit
ce88039f44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/drivers/bridge/bridge.go

+ 1 - 1
libnetwork/drivers/bridge/bridge.go

@@ -453,7 +453,7 @@ func (d *driver) getNetwork(id types.UUID) (*bridgeNetwork, error) {
 		return nw, nil
 		return nw, nil
 	}
 	}
 
 
-	return nil, nil
+	return nil, types.NotFoundErrorf("network not found: %s", id)
 }
 }
 
 
 func parseNetworkGenericOptions(data interface{}) (*networkConfiguration, error) {
 func parseNetworkGenericOptions(data interface{}) (*networkConfiguration, error) {