On Tue, May 7, 2013 at 3:14 PM, Stas Malyshev <smalys...@sugarcrm.com>wrote:
> Hi! > > > If you do user_error('whatever') it'll show, as the line number for that > > error, the line number on which that user_error() call is made. It'd be > > nice if you could control the line number and file name that was > displayed. > > eg. > > If you need additional information to accompany the error, why not add > it to the "whatever" string? This way you can control whatever is > displayed. > > So the error messages your library produces have the same consistent look and feel to them that PHP's errors do? Besides, keeping in mind the KISS "keep it simple stupid" principal gratuitous information should probably be hidden away. I mean if it's not going to help anyone then the only thing left for it to do is potentially confuse people. And why risk that?