From d58014c6b062568b22504ee5d05a816e14911a27 Mon Sep 17 00:00:00 2001 From: Christopher Szatmary Date: Thu, 19 Mar 2020 18:29:46 -0400 Subject: [PATCH] fix: Create new error on port conflict (#251) --- registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/registry.go b/registry/registry.go index 0a47d130..82354e83 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -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