Skip to content

Commit 63c832f

Browse files
pcaspersjenkins
authored andcommitted
QPR-11623 write structured error
1 parent ec54d7c commit 63c832f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

OREAnalytics/orea/app/reportwriter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ void ReportWriter::writeCashflow(ore::data::Report& report, const std::string& b
176176
try {
177177
useAdditionalResults = trade->instrument()->additionalResults().find("cashFlowResults") !=
178178
trade->instrument()->additionalResults().end();
179-
} catch (...) {
179+
} catch (const std::exception& e) {
180+
ALOG(StructuredTradeErrorMessage(trade->id(), trade->tradeType(),
181+
"Error during cashflow reporting / checking for cashFlowResults",
182+
e.what()));
180183
}
181184

182185
try {

0 commit comments

Comments
 (0)