lib/autoproj/cli/main.rb in autoproj-2.6.1 vs lib/autoproj/cli/main.rb in autoproj-2.7.0
- old
+ new
@@ -205,17 +205,24 @@
failures = run_autoproj_cli(:build, :Build, report_options, *packages,
tool_failure_mode: :report_silent)
if !failures.empty?
Autobuild.silent = false
- packages_failed = failures.
+ package_failures, config_failures = failures.partition do |e|
+ e.respond_to?(:target) && e.target.respond_to?(:name)
+ end
+
+ packages_failed = package_failures.
map do |e|
if e.respond_to?(:target) && e.target.respond_to?(:name)
e.target.name
end
end.compact
if !packages_failed.empty?
Autobuild.error "#{packages_failed.size} packages failed: #{packages_failed.sort.join(", ")}"
+ end
+ config_failures.each do |e|
+ Autobuild.error(e)
end
exit 1
end
end