commit | b282d5c8d6f0b8449b09e6020fdd1ae84677a912 | [log] [tgz] |
---|---|---|
author | Jamie Gennis <jgennis@google.com> | Wed Sep 24 20:07:08 2014 -0700 |
committer | Colin Cross <ccross@google.com> | Fri Jan 23 13:41:46 2015 -0800 |
tree | 7c034f299625a5f609ef28d16d709878580df5be | |
parent | 7d5b2f82cea8b1ba127eaca15685937cf0b935d7 [diff] |
Fix a bug that allowed duplicate module names. Change-Id: I9317e43ac435a26397557328036c11a8a2da7480
diff --git a/blueprint/context.go b/blueprint/context.go index e9fa84b..2340fc0 100644 --- a/blueprint/context.go +++ b/blueprint/context.go
@@ -588,7 +588,7 @@ Err: fmt.Errorf("<-- previous definition here"), Pos: c.moduleInfo[first].pos, }) - if len(errs) >= maxErrors { + if len(errs) > 0 { return errs } }