Skip to content

Commit 074b9d5

Browse files
Zeyu Shenjenkins
authored andcommitted
Change error message for CPI leg to avoid confusion
1 parent db320d4 commit 074b9d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OREData/ored/portfolio/legdata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ Leg makeCPILeg(const LegData& data, const boost::shared_ptr<ZeroInflationIndex>&
16491649
CPI::InterpolationType interpolationMethod;
16501650
if (cpiLegData->interpolation().empty()) {
16511651
QL_REQUIRE(cpiSwapConvention,
1652-
"observationLag is not specified in legData and couldn't find convention for "
1652+
"Interpolation is not specified in legData and couldn't find convention for "
16531653
<< cpiLegData->index() << ". Please add field to trade xml or add convention");
16541654
DLOG("Build CPI Leg and use observation lag from standard inflationswap convention");
16551655
interpolationMethod = cpiSwapConvention->interpolated() ? CPI::Linear : CPI::Flat;

0 commit comments

Comments
 (0)