From d3294ac4fd55d0b1e0ac604d10209568fa1b3f1e Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Fri, 12 Jun 2020 17:53:46 +0200
Subject: [PATCH] PosteriorIRF_core1.m: Add missing else statement that
 triggered crashes in rare cases

(cherry picked from commit d54b45cbac567f04901e3bcf8817cef9b56daba5)
---
 matlab/PosteriorIRF_core1.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/matlab/PosteriorIRF_core1.m b/matlab/PosteriorIRF_core1.m
index 6c021576f6..9cfdc8e244 100644
--- a/matlab/PosteriorIRF_core1.m
+++ b/matlab/PosteriorIRF_core1.m
@@ -162,6 +162,8 @@ while fpar<B
             errordef = 'Indeterminacy';
         elseif info(1) == 5
             errordef = 'Rank condition  is not satisfied';
+        else
+            errordef = get_error_message(info, options_);
         end
         if strcmpi(type,'prior')
             disp(['PosteriorIRF :: Dynare is unable to solve the model (' errordef ')'])
-- 
GitLab