[PATCH 2/3] covoar: Improve findCoverageMap error message
Alex White
alex.white at oarcorp.com
Fri Mar 12 17:14:21 UTC 2021
---
tester/covoar/ExecutableInfo.cc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tester/covoar/ExecutableInfo.cc b/tester/covoar/ExecutableInfo.cc
index 5a730fd..30828a6 100644
--- a/tester/covoar/ExecutableInfo.cc
+++ b/tester/covoar/ExecutableInfo.cc
@@ -177,7 +177,9 @@ namespace Coverage {
if (periodIndex == std::string::npos) {
// Symbol name has no '.', can't do another lookup.
- throw rld::error (symbolName, "ExecutableInfo::findCoverageMap");
+ std::ostringstream what;
+ what << "Could not find " << symbolName;
+ throw rld::error (what, "ExecutableInfo::findCoverageMap");
}
cmi = coverageMaps.find(
@@ -185,7 +187,9 @@ namespace Coverage {
);
if ( cmi == coverageMaps.end() ) {
- throw rld::error (symbolName, "ExecutableInfo::findCoverageMap");
+ std::ostringstream what;
+ what << "Could not find " << symbolName;
+ throw rld::error (what, "ExecutableInfo::findCoverageMap");
}
return *(cmi->second);
--
2.27.0
More information about the devel
mailing list