From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: diaper pattern lurking in ui.scm Date: Sun, 31 May 2015 22:05:48 +0200 Message-ID: <87h9qs342r.fsf@gnu.org> References: <87a8wmt0s8.fsf@earlgrey.lan> 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]:46328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz9UZ-0004yp-3V for guix-devel@gnu.org; Sun, 31 May 2015 16:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yz9UV-0002cu-Tq for guix-devel@gnu.org; Sun, 31 May 2015 16:05:55 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz9UV-0002cq-O1 for guix-devel@gnu.org; Sun, 31 May 2015 16:05:51 -0400 In-Reply-To: <87a8wmt0s8.fsf@earlgrey.lan> (Christopher Allan Webber's message of "Sat, 30 May 2015 12:37:36 -0500") 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: Christopher Allan Webber Cc: guix-devel Christopher Allan Webber skribis: > I was working on a new package and found that I was very surprised that > suddenly guix told me that "guix package" did not exist: > > cwebber@earlgrey:~/devel/guix$ guix package --help > guix: package: command not found > Try `guix --help' for more information. > > Whaaaa? Ouch. :-) [...] > In other words, (error) considered harmful, use (throw 'specific-key) > instead :) Indeed. I=E2=80=99ve modified (guix base32) to throw a custom error condit= ion instead, so now this case should be gracefully handled=E2=80=93potentially = fewer frustrated users! Thanks for the report! Ludo=E2=80=99.