From e9549cb1f04b005a112a223f49db1dbfe29b8f8b Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 23 Feb 2015 19:05:34 -0800 Subject: We do not want to catch NoMethodError from deeper in the stack. Signed-off-by: Robin H. Johnson --- 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: -- cgit v1.2.3-65-gdbad