Skip to content
代码片段 群组 项目
提交 a73e58f7 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

draper raise now RuntimeError instead of NoMethodError

上级 dbcf4144
No related branches found
No related tags found
无相关合并请求
...@@ -126,7 +126,7 @@ def assign_ref_vars ...@@ -126,7 +126,7 @@ def assign_ref_vars
@tree = TreeDecorator.new(@tree) @tree = TreeDecorator.new(@tree)
raise InvalidPathError if @tree.invalid? raise InvalidPathError if @tree.invalid?
rescue NoMethodError, InvalidPathError rescue RuntimeError, NoMethodError, InvalidPathError
not_found! not_found!
end end
end end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册