all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Cyprien Nicolas <cyprien@nicolas.tf>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: dmd: [PATCH] Improve socket connection errors handling.
Date: Thu, 10 Apr 2014 17:16:18 +0200	[thread overview]
Message-ID: <20140410151618.GI9248@kubera.prv.maison> (raw)
In-Reply-To: <87k3ax6xu4.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

Il y a environ 24 minutes, Ludovic Courtès écrivit :
> I pushed a couple of patches that achieve the same result slightly
> differently: ‘open-connection’ is left unchanged and it’s the caller’s
> responsibility to handle any errors; clients use the new
> ‘with-system-error-handling’ macro do handle all ‘system-error’
> exceptions gracefully.

Right, much better and elegant fix :-)

> One remark:
>
> > +        (lambda (key . args)
> > +          (display (format #f "Error: Cannot connect to socket `~a': ~a\n"
> > +                           file (apply format #f (cadr args) (caddr args)))
> > +                   (current-error-port))
>
> This could be directly (format (current-error-port) ...).

I missed that part of the documentation.  Thanks for pointing
that out.

> Also, we avoid uses of ‘car’, ‘cadr’ etc. in favor of ‘match’ (at least
> in new code.)

Noted, thanks.

-- 
Cyprien/Fulax

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

      reply	other threads:[~2014-04-10 15:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-10  8:14 dmd: [PATCH] Improve socket connection errors handling Cyprien Nicolas
2014-04-10 14:52 ` Ludovic Courtès
2014-04-10 15:16   ` Cyprien Nicolas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140410151618.GI9248@kubera.prv.maison \
    --to=cyprien@nicolas.tf \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.