summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-01 15:59:43 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-01 15:59:43 +0200
commita73e58f70b264b36b3291bba9a8a2789235ccadb (patch)
treea089de69fda3e2adabd0a4b5e21268e3009b437a /lib/extracts_path.rb
parentdbcf4144ee4da9670efa26f2297d11291823d949 (diff)
downloadgitlab-ce-a73e58f70b264b36b3291bba9a8a2789235ccadb.tar.gz
draper raise now RuntimeError instead of NoMethodError
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r--lib/extracts_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index fb595e18b24..fd0050cfd5f 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -126,7 +126,7 @@ module ExtractsPath
@tree = TreeDecorator.new(@tree)
raise InvalidPathError if @tree.invalid?
- rescue NoMethodError, InvalidPathError
+ rescue RuntimeError, NoMethodError, InvalidPathError
not_found!
end
end