Which source file is causing an error?

I’m importing a few thousand source files into Middleman 3.3.7, and one or more of them is causing an error when I execute middleman build. The error is caused by one of my source files, but which one?

I tried adding --verbose, but it doesn’t help. I did a binary search by removing files from the source folder, but that takes a lot longer than I’d like!

Here’s the wall-o-text stack trace:
http://pastebin.com/Uga5EA8b

Is there an option I can set which will print each filepath before it’s parsed?

If not, which middleman file loops through the source files?

in lib/middleman-blog/blog-data.rb I added a line to the function manipulate_resource_list:

  # Updates'[sic] blog articles destination paths to be the
  # permalink.
  # @return [void]
  def manipulate_resource_list(resources)
    @_articles = []
    used_resources = []

    resources.each do |resource|
      puts resource.path     ######   ADDED THIS LINE
      if resource.ignored?
        # Don't bother blog-processing ignored stuff
        used_resources << resource
        next
      end

This works perfectly!