Commit eeb1a7a5 authored by Vincent Pelletier's avatar Vincent Pelletier

Make error message upon missing workflow chain a bit more explicit and descriptive.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25639 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4105d7d6
...@@ -1479,7 +1479,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): ...@@ -1479,7 +1479,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
else: else:
self._objects[portal_type] = [workflow,] self._objects[portal_type] = [workflow,]
elif not self.is_bt_for_diff: elif not self.is_bt_for_diff:
raise NotFound, 'portal type %s not found in workflow chain'\ raise NotFound, 'No workflow chain found for portal type %s. This '\
'is probably a sign of a missing dependancy.'\
% portal_type % portal_type
# Function to generate XML Code Manually # Function to generate XML Code Manually
......
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