浏览代码

Log current url when container isn't found

Thibaut 11 年之前
父节点
当前提交
89b98bc10a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/docs/filters/core/container.rb

+ 1 - 1
lib/docs/filters/core/container.rb

@@ -7,7 +7,7 @@ module Docs
       container = container.call self if container.is_a? Proc
 
       if container
-        doc.at_css(container) || raise(ContainerNotFound, "element '#{container}' could not be found in the document")
+        doc.at_css(container) || raise(ContainerNotFound, "element '#{container}' could not be found in the document, url=#{current_url}")
       else
         doc
       end