From 5c595097000d31ce1aa016e0d376bddc30a8e746 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 26 Sep 2023 11:47:01 +0300 Subject: Improve 'unable to upgrade package' diagnostics in pkg-build --- bpkg/pkg-build-collect.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bpkg') diff --git a/bpkg/pkg-build-collect.cxx b/bpkg/pkg-build-collect.cxx index c7180d2..47e097f 100644 --- a/bpkg/pkg-build-collect.cxx +++ b/bpkg/pkg-build-collect.cxx @@ -499,11 +499,11 @@ namespace bpkg dr << info << "package " << p.available_name_version () << " required by" << rb; - dr << info << "explicitly request up/downgrade of package " - << dk.name; - - dr << info << "or explicitly specify package " << n - << " version to manually satisfy these constraints" << endf; + dr << info << "consider re-trying with --upgrade|-u potentially combined " + << "with --recursive|-r" << + info << "or explicitly request up/downgrade of package " << dk.name << + info << "or explicitly specify package " << n << " version to " + << "manually satisfy these constraints" << endf; } // postponed_configuration -- cgit v1.1