Skip to content

Commit 25c96d4

Browse files
author
Sylvain MARIE
committed
Minor error message improvement
1 parent 4e5c76e commit 25c96d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code_generation/tpl_magic_methods.mako

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ class _LambdaExpressionGenerated(_LambdaExpressionBase):
154154
This magic method can not be used on an _LambdaExpression, because unfortunately python checks the
155155
result type and does not allow it to be a custom type.
156156
"""
157-
raise FunctionDefinitionError('${o.method_name} is not supported by _LambdaExpression, since python raises an'
157+
raise FunctionDefinitionError('${o.method_name} is not supported by mini-lambda expressions, since python '
158+
'raises an'
158159
' error when its output is not directly an object of the type it expects.'
159160
'Please use the ${o.module_method_name}() method provided at mini_lambda package'
160161
' level instead. If you did not use ${o.method_name} in your expression, you '

0 commit comments

Comments
 (0)