compose/pkg/api
Milas Bowman 053f20edab
port: improve error-handling if port not found (#10039)
This method looked slightly incomplete. If the port wasn't found,
it'd return `err`, but that was always `nil`, so we'd print out
`:0`.

Now, we construct a nice error message with the targeted port and
the ones we found.

The `--protocol` flag is also now case-insensitive to prevent any
weirdness/confusion there.

Co-authored-by: Nick Sieger <nicksieger@gmail.com>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2022-12-05 22:11:45 +00:00
..
api.go port: improve error-handling if port not found (#10039) 2022-12-05 22:11:45 +00:00
api_test.go move compose API into pkg/api 2021-06-15 15:52:48 +02:00
errors.go Add gocritic to linters 2022-07-13 19:33:03 +02:00
errors_test.go move compose API into pkg/api 2021-06-15 15:52:48 +02:00
labels.go build: label built images for reliable cleanup on `down` 2022-09-07 17:57:29 -04:00
proxy.go port: improve error-handling if port not found (#10039) 2022-12-05 22:11:45 +00:00