bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-28 Thread Bengt Richter
Hi Maxim, Ricardo, On +2020-06-28 00:25:28 -0400, Maxim Cournoyer wrote: > Hello Bengt, > > Bengt Richter writes: > > > [...] > > > What do you think of using (ice-9 match) to make a universal > > throwage-formatter, > > with the idea of making readable top level code for how exceptions

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-27 Thread Ricardo Wurmus
Hi Maxim, >> here’s what I did in the REPL: >> >> scheme@(guile-user)> ,m (ice-9 exceptions) >> scheme@(ice-9 exceptions)> (define (my/guile-system-error-converter key args) >> (apply (case-lambda >> ((subr msg-args msg errno . rest) Here I changed the order: “msg-args” appears

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-27 Thread Maxim Cournoyer
Hello Bengt, Bengt Richter writes: [...] > What do you think of using (ice-9 match) to make a universal > throwage-formatter, > with the idea of making readable top level code for how exceptions become > messages on screen? > > I started a hack to explore the (throw 'whatever any ...)

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-27 Thread Maxim Cournoyer
Hello Ricardo! Ricardo Wurmus writes: > Hi Maxim, > > here’s what I did in the REPL: > > scheme@(guile-user)> ,m (ice-9 exceptions) > scheme@(ice-9 exceptions)> (define (my/guile-system-error-converter key args) > (apply (case-lambda > ((subr msg-args msg errno . rest) >

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-25 Thread Bengt Richter
Hi Ricardo et al, On +2020-06-25 12:04:27 +0200, Ricardo Wurmus wrote: > > Hi Maxim, > > here’s what I did in the REPL: > > --8<---cut here---start->8--- > scheme@(guile-user)> ,m (ice-9 exceptions) > scheme@(ice-9 exceptions)> (define

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-25 Thread Ricardo Wurmus
Hi Maxim, here’s what I did in the REPL: --8<---cut here---start->8--- scheme@(guile-user)> ,m (ice-9 exceptions) scheme@(ice-9 exceptions)> (define (my/guile-system-error-converter key args) (apply (case-lambda ((subr msg-args msg errno . rest)

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-20 Thread Maxim Cournoyer
Hello Bengt! Bengt Richter writes: > Hi Maxim, > > tl;dr: > Does module/ice-9/exceptions.scm use the default format? > Maybe (use-modules (ice-9) format) will help get to the next bug ?? :) Thanks for suggesting! I tried but got the same result. I'm now testing a slightly different version:

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-20 Thread Bengt Richter
Hi Maxim, tl;dr: Does module/ice-9/exceptions.scm use the default format? Maybe (use-modules (ice-9) format) will help get to the next bug ?? :) On +2020-06-20 01:46:13 -0400, maxim.courno...@gmail.com wrote: > Maxim Cournoyer writes: > > > Hello, > > > > I had this problem in Guix where 'guix

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-19 Thread maxim . cournoyer
Maxim Cournoyer writes: > Hello, > > I had this problem in Guix where 'guix deploy my-config.scm' would > unhelpfully report an error like: > > guix deploy: error: failed to deploy my-host: ~A: ~S > > Digging a bit, I could reproduce at the REPL with: > > (guard (c ((message-condition? c) >

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-19 Thread Maxim Cournoyer
Hello, I had this problem in Guix where 'guix deploy my-config.scm' would unhelpfully report an error like: guix deploy: error: failed to deploy my-host: ~A: ~S Digging a bit, I could reproduce at the REPL with: --8<---cut here---start->8--- (guard (c