diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-12 11:29:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-12 11:29:41 +0200 |
commit | 384a3287548786990745c88a7da652a179a4731f (patch) | |
tree | 91ae576484dc14041992a4b8f09baa29ed8e0f56 | |
parent | e229d0889faef3931240d5e348c1c70917c7d7f5 (diff) |
Improve diagnostics
-rw-r--r-- | bpkg/pkg-purge.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/pkg-purge.cxx b/bpkg/pkg-purge.cxx index b13eabd..47ff05f 100644 --- a/bpkg/pkg-purge.cxx +++ b/bpkg/pkg-purge.cxx @@ -134,7 +134,8 @@ namespace bpkg dir_path d (c / *p->out_root); // Always relative. if (exists (d)) - fail << "broken package " << n << " output directory still exists" << + fail << "output directory of broken package " << n + << " still exists" << info << "remove " << d << " manually then re-run pkg-purge"; } @@ -143,7 +144,8 @@ namespace bpkg dir_path d (p->src_root->absolute () ? *p->src_root : c / *p->src_root); if (exists (d)) - fail << "broken package " << n << " source directory still exists" << + fail << "source directory of broken package " << n + << " still exists" << info << "remove " << d << " manually then re-run pkg-purge"; } @@ -152,7 +154,7 @@ namespace bpkg path a (p->archive->absolute () ? *p->archive : c / *p->archive); if (exists (a)) - fail << "broken package " << n << " archive still exists" << + fail << "archive file of broken package " << n << " still exists" << info << "remove " << a << " manually then re-run pkg-purge"; } } |