Commit b130c858 authored by Romain Courteaud's avatar Romain Courteaud

Improve the error message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cac5739e
......@@ -933,8 +933,9 @@ def get_field_meta_type_and_proxy_flag(field):
try:
return field.getRecursiveTemplateField().meta_type, True
except AttributeError:
raise AttributeError, 'The proxy target of %s field does not '\
'exists. Please check the field setting.' % field.getId()
raise AttributeError, 'The proxy target of %s.%s field does not '\
'exists. Please check the field setting.' % \
(field.aq_parent.id, field.getId())
else:
return field.meta_type, False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment