From 72c216fd7c6b3d4734f6fa6dd85bb42c9687f145 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 6 Aug 2019 11:31:56 -0400
Subject: [PATCH] macro processor: fix error messages

---
 src/macro/Expressions.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/macro/Expressions.cc b/src/macro/Expressions.cc
index a740b6f9..93ce47c7 100644
--- a/src/macro/Expressions.cc
+++ b/src/macro/Expressions.cc
@@ -306,7 +306,7 @@ String::cast_bool() const
     }
   catch (...)
     {
-      throw StackTrace(value + " cannot be converted to a boolean");
+      throw StackTrace(R"(")" + value + R"(" cannot be converted to a boolean)");
     }
 }
 
@@ -319,7 +319,7 @@ String::cast_int() const
     }
   catch (...)
     {
-      throw StackTrace(value + " cannot be converted to an int");
+      throw StackTrace(R"(")" + value + R"(" cannot be converted to an int)");
     }
 }
 
@@ -332,7 +332,7 @@ String::cast_double() const
     }
   catch (...)
     {
-      throw StackTrace(value + " cannot be converted to a double");
+      throw StackTrace(R"(")" + value + R"(" cannot be converted to a double)");
     }
 }
 
-- 
GitLab