The trouble is, it's so much easier to Just code "... ELSE CRT @(00,24):'***ERROR*** end date must not be before start date' "
Than <look up error number in a list. Darn, it's not there, assign a new number, update the list, document the change> Now code " ... ELSE ErrorCode = '123456'; ErrorText = '' CALL ErrorLookup (ErrorCode, ErrorText) CRT AtErrMsgPosn:'***ERROR*** ':ErrorText " In my experience, programmers tend to revert to the former even when there's a provided way of doing the latter, particularly for what they consider to be unlikely errors. You'll only catch this if your Quality Assurance actions include code review. And most of us don't do that Regards Mike > -----Original Message----- > From: u2-users-boun...@listserver.u2ug.org > [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of > Charlie Noah > Sent: Thursday, 10 February 2011 10:53 > To: U2 Users List > Subject: Re: [U2] Clear Message Initiative - Logging Errors > to a U2 File > > This is indeed an excellent article. Thanks, Susan! Error > messages certainly get ignored, and I'm as guilty as rest. > > Charlie Noah > > > On 02-09-2011 2:02 PM, Bill Brutzman wrote: > > Thanks to Susan Joslyn for the excellent article on the > "Clear Message Initiative. I just received my copy of the > magazine in the mail today. > > > > It happens that over the weekend, I was reading "Code > Complete 2" by Steve McConnell of Construx. Following an > idea in Code Complete... > > > > Yesterday, I told my boss that I am planning to enhance the > clarity of our error messages, send a workflow message to > others who would need to know about that problem and also to > LOG THE ERROR MESSAGE to a U2 file, user, time, date etc. > > > > --Bill > > > > _______________________________________________ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users