diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc
index a7b140dcbf1c5f894a0c0f5781786eecb0daba9b..74266f63c65996e589cce426bbfb518df18ef9b7 100644
--- a/src/DynamicModel.cc
+++ b/src/DynamicModel.cc
@@ -4081,7 +4081,7 @@ DynamicModel::testTrendDerivativesEqualToZero(const eval_context_t &eval_context
                       {
                         cerr << "ERROR: trends not compatible with balanced growth path; the second-order cross partial of equation " << eq + 1;
                         if (equations_lineno[eq])
-                          cerr << " (line " << *equations_lineno[eq] << ")";
+                          cerr << " (line " << *equations_lineno[eq] << ") ";
                         cerr << "w.r.t. trend variable "
                              << symbol_table.getName(symb_id1) << " and endogenous variable "
                              << symbol_table.getName(symb_id2) << " is not null (abs. value = "