Skip to content

Commit be48111

Browse files
author
Michal Tichák
committed
fixup! [Framework] try catch around read_json in CcdbDatabase.cxx
1 parent e0a7971 commit be48111

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Framework/src/CcdbDatabase.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ boost::property_tree::ptree CcdbDatabase::getListingAsPtree(const std::string& p
571571
try {
572572
boost::property_tree::read_json(listingAsStringStream, listingAsTree);
573573
} catch (const boost::property_tree::json_parser::json_parser_error&) {
574+
ILOG(Error, Support) << "Failed to parse json in CcdbDatabase::getListingAsPtree from data: " << listingAsStringStream.str() << ENDM;
574575
}
575576

576577
return listingAsTree;
@@ -623,6 +624,7 @@ std::vector<std::string> CcdbDatabase::getPublishedObjectNames(std::string taskN
623624
try {
624625
boost::property_tree::read_json(ss, pt);
625626
} catch (const boost::property_tree::json_parser::json_parser_error&) {
627+
ILOG(Error, Support) << "Failed to parse json in CcdbDatabase::getTimestampsForObject from data: " << ss.str() << ENDM;
626628
}
627629

628630
BOOST_FOREACH (boost::property_tree::ptree::value_type& v, pt.get_child("objects")) {

0 commit comments

Comments
 (0)