aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-04 15:11:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-04 15:11:49 +0200
commitf45372f06b077bb85886a48f03cf876941a20539 (patch)
treeef7f840fb4124a4916a2a6262c1db47e25d7d3a2
parent55921b1bd165430ace40e458b8a47699b5af6844 (diff)
Improve auth diagnostics
-rw-r--r--bpkg/auth.cxx16
1 files 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;
}