Skip to content

Commit

Permalink
Add debug output to assert triggered in check of cms.cern.ch (cvmfs#3712
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vvolkl authored Dec 2, 2024
1 parent f9ee6d6 commit 099e494
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cvmfs/swissknife_check.cc
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,12 @@ catalog::Catalog* CommandCheck::FetchCatalog(const string &path,
catalog::Catalog *catalog =
catalog::Catalog::AttachFreely(path, tmp_file, catalog_hash);
int64_t catalog_file_size = GetFileSize(tmp_file);
assert(catalog_file_size > 0);
if (catalog_file_size <= 0) {

LogCvmfs(kLogCvmfs, kLogStderr, "Error downloading catalog %s at %s %s",
catalog_hash.ToString().c_str(), path.c_str(), tmp_file.c_str() );
assert(catalog_file_size > 0);
}
unlink(tmp_file.c_str());

if ((catalog_size > 0) && (uint64_t(catalog_file_size) != catalog_size)) {
Expand Down

0 comments on commit 099e494

Please sign in to comment.