From a691fec1ddaf73e04f8313c53aebbd366690901d Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 24 Jan 2016 21:06:02 +0100 Subject: [PATCH] + fix exception text in PropertyFileIncluded --- src/App/PropertyFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/PropertyFile.cpp b/src/App/PropertyFile.cpp index 4e68baf87..b121125ed 100644 --- a/src/App/PropertyFile.cpp +++ b/src/App/PropertyFile.cpp @@ -287,7 +287,7 @@ void PropertyFileIncluded::setPyObject(PyObject *value) fileStr = PyString_AsString(FileName); } else { - std::string error = std::string("First item in tuple must be a file or string"); + std::string error = std::string("First item in tuple must be a file or string, not "); error += value->ob_type->tp_name; throw Base::TypeError(error); } @@ -302,7 +302,7 @@ void PropertyFileIncluded::setPyObject(PyObject *value) nameStr = PyString_AsString(FileName); } else { - std::string error = std::string("Second item in tuple must be a string"); + std::string error = std::string("Second item in tuple must be a string, not "); error += value->ob_type->tp_name; throw Base::TypeError(error); } @@ -311,7 +311,7 @@ void PropertyFileIncluded::setPyObject(PyObject *value) return; } else { - std::string error = std::string("Type must be string or file"); + std::string error = std::string("Type must be string or file, not "); error += value->ob_type->tp_name; throw Base::TypeError(error); }