aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-02-23 19:05:34 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2015-02-23 19:05:34 -0800
commite9549cb1f04b005a112a223f49db1dbfe29b8f8b (patch)
treea6f49e7a3a8dc5d55f04592a96a2864c7b46a5b0
parentFix vim. (diff)
downloadbackend-e9549cb1f04b005a112a223f49db1dbfe29b8f8b.tar.gz
backend-e9549cb1f04b005a112a223f49db1dbfe29b8f8b.tar.bz2
backend-e9549cb1f04b005a112a223f49db1dbfe29b8f8b.zip
We do not want to catch NoMethodError from deeper in the stack.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xag4
1 files 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: