diff --git a/matlab/DsgeSmoother.m b/matlab/DsgeSmoother.m
index 997904afcf14acf81b3612aebb3fc18ee2c9950e..6466ad2f1ef6fea5023645365987432abd775b6b 100644
--- a/matlab/DsgeSmoother.m
+++ b/matlab/DsgeSmoother.m
@@ -104,6 +104,10 @@ oo_.dr.restrict_columns = bayestopt_.smoother_restrict_columns;
 
 [T,R,SteadyState,info,M_,options_,oo_] = dynare_resolve(M_,options_,oo_);
 
+if info~=0
+    print_info(info,options_.noprint, options_);
+    return
+end
 oo_.dr.restrict_var_list = oldoo.restrict_var_list;
 oo_.dr.restrict_columns = oldoo.restrict_columns;