Validation hardening
This commit is contained in:
@@ -196,6 +196,14 @@ func BuildNativeWithOptions(p *project.Project, opts NativeBuildOptions, progres
|
||||
}
|
||||
return BuildResult{}, fmt.Errorf("topdata validation failed with %d error(s)", report.ErrorCount())
|
||||
}
|
||||
if warnings := report.WarningCount(); warnings > 0 {
|
||||
progress(fmt.Sprintf("topdata validation warnings: %d", warnings))
|
||||
for _, line := range report.SummaryLines(5) {
|
||||
if strings.HasPrefix(line, "warning:") {
|
||||
progress(line)
|
||||
}
|
||||
}
|
||||
}
|
||||
var prebuiltWiki *wikiResult
|
||||
if opts.BuildWiki {
|
||||
if newestWikiSource, _, err := newestRelevantWikiSource(p.TopDataSourceDir()); err == nil && !newestWikiSource.IsZero() {
|
||||
|
||||
Reference in New Issue
Block a user