From e86b3724644a0db2388b5f4235bcc7d40ece8982 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 13 Sep 2023 15:04:33 +0200
Subject: [PATCH] Display more explicit error message when k_order_perturbation
 MEX fails

---
 matlab/k_order_pert.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/matlab/k_order_pert.m b/matlab/k_order_pert.m
index 02ad4bb6bd..a9dc60ec92 100644
--- a/matlab/k_order_pert.m
+++ b/matlab/k_order_pert.m
@@ -1,7 +1,7 @@
 function [dr,info] = k_order_pert(dr,M,options)
 % Compute decision rules using the k-order DLL from Dynare++
 
-% Copyright © 2009-2020 Dynare Team
+% Copyright © 2009-2023 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -32,7 +32,8 @@ end
 
 try
     [dynpp_derivs, dyn_derivs] = k_order_perturbation(dr,M,options);
-catch
+catch ME
+    disp(ME.message)
     info(1)=9;
     return
 end
-- 
GitLab