Commit e1ce3bed authored by Sebastien Robin's avatar Sebastien Robin

business template: improve error message when a dependency is missing

parent 5bb2b846
......@@ -5784,7 +5784,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
"""
missing_dep_list = self.getMissingDependencyList()
if len(missing_dep_list) != 0:
raise BusinessTemplateMissingDependency, 'Impossible to install, please install the following dependencies before: %s'%repr(missing_dep_list)
raise BusinessTemplateMissingDependency, \
'Impossible to install %s, please install the following dependencies before: %s' \
%(self.getTitle(), repr(missing_dep_list))
def getMissingDependencyList(self):
"""
......
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