From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: improve error message for `guix environment' Date: Mon, 16 Mar 2015 19:49:03 -0400 Message-ID: <87k2yg1p1s.fsf@fsf.org> References: <20150316083300.GB15469@venom> <87r3sp14bk.fsf@fsf.org> <87mw3d3px6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXekt-00037e-MR for guix-devel@gnu.org; Mon, 16 Mar 2015 19:49:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXeks-0001MO-Mp for guix-devel@gnu.org; Mon, 16 Mar 2015 19:49:07 -0400 In-Reply-To: <87mw3d3px6.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > David Thompson skribis: > >> From 13113846f0f19b57f271dc71b5cbc606d8c2b68a Mon Sep 17 00:00:00 2001 >> From: David Thompson >> Date: Mon, 16 Mar 2015 08:59:59 -0400 >> Subject: [PATCH] scripts: environment: Improve error messages. >> >> * guix/scripts/environment.scm (guix-environmnet): Wrap procedure body w= ith >> error handling form. > > Oh yes, that=E2=80=99s the right thing to do, please push. Pushed. Perhaps it would be a good idea to just wrap '(apply command-main args)' with 'with-error-handling' in (guix ui) so that every guix subcommand has friendly error handling by default. Thoughts? --=20 David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate