diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc
index 8f122655ded106430033b7d8e98de24428658014..214cbf84b54fd0b81f0ba8be34d659b167ce264d 100644
--- a/preprocessor/ParsingDriver.cc
+++ b/preprocessor/ParsingDriver.cc
@@ -545,7 +545,7 @@ ParsingDriver::add_det_shock(string *var, bool conditional_forecast)
   if (conditional_forecast)
     {
       if (type != eEndogenous)
-        error("conditional_forecast_paths: shocks can only be applied to exogenous variables");
+        error("conditional_forecast_paths: shocks can only be applied to endogenous variables");
     }
   else
     {