summaryrefslogtreecommitdiff
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 05:39:48 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 05:39:48 +0000
commitae80b4fac22ecb01cbe1d2281f53a4281afd910f (patch)
tree6d3ee6fda2625fb7a096c7b4dc3cb2cacb851a84 /tool/transcode-tblgen.rb
parentc6c4ce81c2aef709d038ef6bd8927d7bf5c58ef1 (diff)
* tool/transcode-tblgen.rb: set ERB source filename for error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 70eb360..aaf33be 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -728,7 +728,9 @@ if VERBOSE_MODE
end
libs1 = $".dup
-erb_result = ERB.new(src, nil, '%').result(binding)
+erb = ERB.new(src, nil, '%')
+erb.filename = arg
+erb_result = erb.result(binding)
libs2 = $".dup
libs = libs2 - libs1