P4DTI issue job000303

TitleIncorrect message catalog use generates obscure errors
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionMinor errors in the use of the message catalog can obscure the real error being hidden. This can cause a great deal of trouble in tracking down the problem.
AnalysisThe P4DTI uses a message catalog for all its messages. This is great for localization, distributed development, etc, but needs to be more robust. Code which uses it incorrectly can generate some fairly obscure error messages. For instance, trying to log a string rather than a message id or message object leads to the catalog factory failing to lookup the string as a message id.
At least, catalog.msg should check that its argument is the right type.
How foundcustomer
Evidence<URL: http://info.ravenbrook.com/mail/2001/04/20/12-36-53/0.txt>
Observed in1.1.1
Introduced in1.1.0
Test procedure<http://www.ravenbrook.com/project/p4dti/master/test/test_catalog.py>, section 2.3
Created byNick Barnes
Created on2001-04-20 15:41:59
Last modified byGareth Rees
Last modified on2001-12-10 19:39:52
History2001-04-20 NB Created.

Fixes

Change Effect Date User Description
12795 closed 2001-05-22 16:37:41 Gareth Rees Message factory generates better error messages when passed an invalid message id or the wrong number of arguments.