lib/solve/errors.rb in solve-1.2.0 vs lib/solve/errors.rb in solve-1.2.1
- old
+ new
@@ -41,10 +41,11 @@
def to_s
s = ""
s << "#{@message}\n"
s << "Missing artifacts: #{missing_artifacts.join(',')}\n" unless missing_artifacts.empty?
unless constraints_excluding_all_artifacts.empty?
- s << "Constraints that match no available version: #{constraints_excluding_all_artifacts.join(',')}\n"
+ pretty = constraints_excluding_all_artifacts.map { |constraint| "(#{constraint[0]} #{constraint[1]})" }.join(',')
+ s << "Constraints that match no available version: #{pretty}\n"
end
s << "Demand that cannot be met: #{unsatisfiable_demand}\n" if unsatisfiable_demand
unless artifacts_with_no_satisfactory_version.empty?
s << "Artifacts for which there are conflicting dependencies: #{artifacts_with_no_satisfactory_version.join(',')}"
end