From f45372f06b077bb85886a48f03cf876941a20539 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Sep 2016 15:11:49 +0200 Subject: Improve auth diagnostics --- bpkg/auth.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx index 11c18b5..0eef623 100644 --- a/bpkg/auth.cxx +++ b/bpkg/auth.cxx @@ -82,13 +82,15 @@ namespace bpkg if (co.trust_yes ()) { - if (verb) - info << "trusting unsigned repository " << rl.canonical_name (); + if (verb >= 2) + info << "unsigned repository " << rl.canonical_name () << + " trusted by command line"; } else { - (co.trust_no () ? error : warn) << "repository " << rl.canonical_name () - << " is unsigned"; + (co.trust_no () + ? error + : warn) << "repository " << rl.canonical_name () << " is unsigned"; } if (co.trust_no () || @@ -485,9 +487,9 @@ namespace bpkg if (trust) { - if (verb) - info << "trusting non-authenticated certificate for repository " - << rl.canonical_name (); + if (verb >= 2) + info << "certificate for repository " << rl.canonical_name () << + " authenticated by command line"; return cert; } -- cgit v1.1