Re: [racket-users] exn-string

2015-05-26 Thread WarGrey Gyoudmon Ju
I think user-friendly 500 page should be designed separately just as web devs do for 404 page. In practice, a user happens to meet an uncaught runtime exception, and he's browsing a buggy website, perhaps he do not have the will to report the problem, nor the way to report it. Finally, devs will

Re: [racket-users] exn-string

2015-05-26 Thread Jay McCarthy
For the purposes of the Web server, I don't think that's the right thing to do. The right thing to do if you don't like the error display is to change the arguments to #:servlet-loading-responder and #:servlet-responder to print less, or just put with-handlers in your servlet and do something

Re: [racket-users] exn-string

2015-05-26 Thread Jay McCarthy
Amen On Tuesday, May 26, 2015, WarGrey Gyoudmon Ju juzhenli...@gmail.com wrote: I think user-friendly 500 page should be designed separately just as web devs do for 404 page. In practice, a user happens to meet an uncaught runtime exception, and he's browsing a buggy website, perhaps he do

Re: [racket-users] exn-string

2015-05-26 Thread Greg Hendershott
I was thinking the parameter could be a handy runtime switch, defaulting to safe. However realistically there's probably a lot of other ground to cover when it comes to debug vs. production deployments. Maybe this needs a more comprehensive approach than nibbling away one switch at a time. Maybe

Re: [racket-users] exn-string

2015-05-26 Thread Tony Garnock-Jones
On 05/25/2015 11:16 AM, Greg Hendershott wrote: Should there maybe be a parameter to control whether exn-string returns anything interesting? And, should it be #f by default? That's an interesting idea. I know of examples where Racket error reports have disclosed sensitive information. Such

Re: [racket-users] exn-string

2015-05-25 Thread Greg Hendershott
Maybe I'm over-thinking this and/or misunderstanding the use case, but: Should there maybe be a parameter to control whether exn-string returns anything interesting? And, should it be #f by default? Roughly, for example: ;; When current-exn-string-enabled? is #f -- the default -- ;; exn-string

Re: [racket-users] exn-string

2015-05-24 Thread Matthew Flatt
A new module sounds right to me. I was thinking `racket/exn-to-string` for just this function, but `racket/exn` sounds fine and maybe better. At Sun, 24 May 2015 08:01:23 -0400, Jay McCarthy wrote: I think it's a good idea. Where to though? A new racket/exn module? Jay On Sat, May 23, 2015

Re: [racket-users] exn-string

2015-05-24 Thread Jay McCarthy
I think it's a good idea. Where to though? A new racket/exn module? Jay On Sat, May 23, 2015 at 11:48 AM, Tony Garnock-Jones to...@ccs.neu.edu wrote: Hi all, I find myself using exn-string from web-server/private/util *a lot* in many of my packages. (I just counted eight!) Should we move