From d22b86c2d8d2ba7166f09a1803e5c9ee740e2432 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan.bastani@ens.fr>
Date: Mon, 29 Aug 2011 18:03:26 +0200
Subject: [PATCH] clarify error message

---
 matlab/dr1.m        | 1 +
 matlab/print_info.m | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/matlab/dr1.m b/matlab/dr1.m
index fa9b399f29..3fa897cf48 100644
--- a/matlab/dr1.m
+++ b/matlab/dr1.m
@@ -363,6 +363,7 @@ else  % use original Dynare solver
     if info1
         info(1) = 2;
         info(2) = info1;
+        info(3) = size(e,2);
         return
     end
 
diff --git a/matlab/print_info.m b/matlab/print_info.m
index 60b80f0e0e..d05ea71997 100644
--- a/matlab/print_info.m
+++ b/matlab/print_info.m
@@ -33,8 +33,9 @@ if ~noprint
         error(['The model doesn''t determine the current variables' ...
                ' uniquely'])
       case 2
-        error(['MJDGGES returns the following error code: ' ...
-               int2str(info(2))])
+        error(['The generalized Schur (QZ) decomposition failed. ' ...
+               'For more information, see the documentation for Lapack function dgges: info=' ...
+               int2str(info(2)) ', n=' int2str(info(3))])
       case 3
         error(['Blanchard Kahn conditions are not satisfied: no stable' ...
                ' equilibrium'])
@@ -105,4 +106,4 @@ if ~noprint
       otherwise
         error('This case shouldn''t happen. Contact the authors of Dynare')
     end
-end
\ No newline at end of file
+end
-- 
GitLab