Report the file that has such a problem so that one can inspect it.
Signed-off-by: Martin Liska <[email protected]>
---
debuginfod/debuginfod.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 9245be53..67683354 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -1714,7 +1714,7 @@ handle_buildid_r_match (bool internal_req_p,
rc = archive_read_open_FILE (a, fp);
if (rc != ARCHIVE_OK)
- throw archive_exception(a, "cannot open archive from pipe");
+ throw archive_exception(a, "cannot open archive " + b_source0 + " from
pipe");
// archive traversal is in three stages, no, four stages:
// 1) skip entries whose names do not match the requested one
@@ -2973,7 +2973,7 @@ archive_classify (const string& rps, string&
archive_extension,
rc = archive_read_open_FILE (a, fp);
if (rc != ARCHIVE_OK)
- throw archive_exception(a, "cannot open archive from pipe");
+ throw archive_exception(a, "cannot open archive " + rps + " from pipe");
if (verbose > 3)
obatched(clog) << "libarchive scanning " << rps << endl;
--
2.37.1