From 4bcbd0698080ab4262b086a95c85fdf16347e90f Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Tue, 8 Dec 2009 10:01:41 +0000
Subject: [PATCH] k_order_perturbation: cosmetic change

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3207 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 mex/sources/k_order_perturbation/dynamic_dll.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mex/sources/k_order_perturbation/dynamic_dll.cpp b/mex/sources/k_order_perturbation/dynamic_dll.cpp
index d695db8965..70ec66d9c3 100644
--- a/mex/sources/k_order_perturbation/dynamic_dll.cpp
+++ b/mex/sources/k_order_perturbation/dynamic_dll.cpp
@@ -64,7 +64,12 @@ DynamicModelDLL::DynamicModelDLL(const string &modName, const int y_length, cons
   catch (int i)
     {
       ostringstream msg;
-      msg << "Can't load " << fName << " (error code: " << i;
+      msg << "Error when loading " << fName << " (";
+      if (i == 1)
+        msg << "can't dynamically load the file";
+      if (i == 2)
+        msg << "can't locate the 'Dynamic' symbol";
+      msg << ")";
       throw DynareException(__FILE__, __LINE__, msg.str());
     }
   catch (...)
-- 
GitLab