I think you probably want to use the errortrace library. That's what DrRacket uses (and how it gets the better error messages).
Robby On Sun, Aug 29, 2010 at 6:04 PM, Jose A. Ortega Ruiz <j...@gnu.org> wrote: > > In Racket 5.0.1, with, say, f.rkt containing: > > #lang racket > (provide bar) > (define (foo x) x) > (define (bar) (foo)) > > requiring f.rkt at racket's textual REPL via `(require (file "f.rkt"))' > works fine (as expected) and calling `(bar)' gives an error (again as > expected); but the error message does not include any location > information (neither the file nor the line): > >> (bar) > procedure foo: expects 1 argument, given 0 > > === context === > /usr/local/plt/collects/racket/private/misc.rkt:74:7 > >> > > I'm not sure if this is a regression, but, anyway, i was expecting that > information in the error message. > > Cheers, > jao > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users