diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index ba10beef..c9ac0e20 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -521,7 +521,7 @@ class autoxml(oo.autosuper): writetext(xml, node, token, unicode(value)) else: if req == mandatory: - errs.append(_('Mandatory argument not available')) + errs.append(_('Mandatory token %s not available') % token) def check(value, where): errs = [] diff --git a/tests/xmlfiletests.py b/tests/xmlfiletests.py index 50c99ebf..5f7a66d9 100644 --- a/tests/xmlfiletests.py +++ b/tests/xmlfiletests.py @@ -79,6 +79,7 @@ class AutoXmlTestCase(testcase.TestCase): a.description['tr'] = u'Melek, melek' a.comment = u'Bu da zibidi aslinda ama caktirmiyor' a.href = 'http://cekirdek.uludag.org.tr/~baris' + a.otherInfo.birthDate = '30101979' a.projects = [ 'pisi', 'tasma', 'plasma' ] errs = a.check() if errs: