On 2015-07-07 07:34, Mariano Ramon wrote:
> 
> 
> On Monday, July 6, 2015 at 6:40:06 PM UTC-3, Cédric Krier wrote:
> >
> > On 2015-07-06 12:27, Mariano Ramon wrote: 
> > > is there anyway to customize runtime errors that show the python 
> > exception 
> > > and use a catch all with a more user friendly message? 
> >
> > By definition a traceback is an exception that is not expected. 
> > Hiding it will just result of never fixing the problem, so that's why 
> > Tryton shows such unexpected error. 
> > If you want a friendly message, you must write code that doesn't crash 
> > unexpectly. 
> >
> >
> 
> Of course, it was not intended as a solution. I asked because frameworks 
> usually have a debug mode that works like it does now and the prodution 
> mode where internals are not leaked in case of a bug.

What will be leaked that is not already public?
Also it is the best way to have issue in production that you can not fix
because you don't know how to as you don't have the traceback.


-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to