diff --git a/ModFile.cc b/ModFile.cc
index 0d51bd0be2013d0313117d27e7ea3a16ed46e628..794f1e46b1beca4b8dd904a544b822ae3ac93340 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -431,7 +431,7 @@ ModFile::transformPass(bool nostrict)
 
   if (symbol_table.exo_det_nbr() > 0 && mod_file_struct.perfect_foresight_solver_present)
     {
-      cerr << "ERROR: A .mod file cannot contain both one of {perfect_foresight_solver,simul}  and varexo_det declaration (all exogenous variables are deterministic in this case)" << endl;
+      cerr << "ERROR: A .mod file cannot contain both one of {perfect_foresight_solver, simul} and varexo_det declaration (all exogenous variables are deterministic in this case)" << endl;
       exit(EXIT_FAILURE);
     }