From 808df3e90fcf743142a42674576e45ed5fb0c129 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 29 Jul 2017 11:40:11 +0200 Subject: [PATCH] More verbose error messages for expression methods. --- src/tl/tlExpression.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tl/tlExpression.cc b/src/tl/tlExpression.cc index 5abba869d..6485714c9 100644 --- a/src/tl/tlExpression.cc +++ b/src/tl/tlExpression.cc @@ -2041,10 +2041,10 @@ public: } else if (v->is_user ()) { c = v->user_cls () ? v->user_cls ()->eval_cls () : 0; if (! c) { - throw EvalError (tl::to_string (QObject::tr ("Not a valid object for a method call (not an object)")), m_context); + throw EvalError (tl::to_string (QObject::tr ("Not a valid object for a method call (not an object) - value is %1").arg (tl::to_qstring (v->to_parsable_string ()))), m_context); } } else { - throw EvalError (tl::to_string (QObject::tr ("Not a valid object for a method call (wrong type)")), m_context); + throw EvalError (tl::to_string (QObject::tr ("Not a valid object for a method call (wrong type) - value is %1").arg (tl::to_qstring (v->to_parsable_string ()))), m_context); } tl::Variant o;