Title | Incorrect message catalog use generates obscure errors |
Status | closed |
Priority | essential |
Assigned user | Nick Barnes |
Organization | Ravenbrook |
Description | Minor 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. |
Analysis | The 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 found | customer |
Evidence | <URL: http://info.ravenbrook.com/mail/2001/04/20/12-36-53/0.txt > |
Observed in | 1.1.1 |
Introduced in | 1.1.0 |
Test procedure | <http://www.ravenbrook.com/project/p4dti/master/test/test_catalog.py >, section 2.3 |
Created by | Nick Barnes |
Created on | 2001-04-20 15:41:59 |
Last modified by | Gareth Rees |
Last modified on | 2001-12-10 19:39:52 |
History | 2001-04-20 NB Created. |
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. |