From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EA4EB138A87 for ; Tue, 24 Feb 2015 03:05:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C397E07E0; Tue, 24 Feb 2015 03:05:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3BD3FE07E0 for ; Tue, 24 Feb 2015 03:05:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0864A340889 for ; Tue, 24 Feb 2015 03:05:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A80C0126B5 for ; Tue, 24 Feb 2015 03:05:39 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1424747134.e9549cb1f04b005a112a223f49db1dbfe29b8f8b.robbat2@gentoo> Subject: [gentoo-commits] proj/ag:master commit in: / X-VCS-Repository: proj/ag X-VCS-Files: ag X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: e9549cb1f04b005a112a223f49db1dbfe29b8f8b X-VCS-Branch: master Date: Tue, 24 Feb 2015 03:05:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c3b07ba1-e824-4481-a633-fea164e4e9c3 X-Archives-Hash: bf34caa6749c0a71f6c55333ab06c0e1 commit: e9549cb1f04b005a112a223f49db1dbfe29b8f8b Author: Robin H. Johnson gentoo org> AuthorDate: Tue Feb 24 03:05:34 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Feb 24 03:05:34 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=e9549cb1 We do not want to catch NoMethodError from deeper in the stack. Signed-off-by: Robin H. Johnson gentoo.org> --- ag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ag b/ag index 644cb4b..00ce189 100755 --- a/ag +++ b/ag @@ -247,9 +247,9 @@ end ############################################################################### -begin +if self.private_methods.include? $options.action send $options.action -rescue NoMethodError +else abort "Internal Error: Unknown action: #{$options.action}" end # vim: ts=2 sts=2 et ft=ruby: