From c66e09ce4b709c8b8af5ce1617a189bd57c38228 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Thu, 10 Aug 2017 15:47:51 +0200 Subject: [PATCH] DsgeSmoother.m: provide informative error instead of crashing when model cannot be solved (cherry picked from commit 8ccebd9e23b840fac0e0eea634cecb3ed1895c1f) --- matlab/DsgeSmoother.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/DsgeSmoother.m b/matlab/DsgeSmoother.m index 997904afc..6466ad2f1 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; -- GitLab