Skip to content

Commit

Permalink
fix: Create new error on port conflict (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
cszatmary authored Mar 19, 2020
1 parent 1eab7e9 commit d58014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func Validate(path string) error {
exposedPort := strings.Split(p, ":")[0]
if conflict, ok := usedPorts[exposedPort]; ok {
log.Infof(color.Red("❌ service %s has conflicting port %s with service %s"), n, exposedPort, conflict)
return errors.Wrapf(err, "service %s failed validation", n)
return errors.Errorf("service %s failed validation", n)
}

usedPorts[exposedPort] = n
Expand Down

0 comments on commit d58014c

Please sign in to comment.