mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
set ERB#filename so that it is used when reporting syntax/runtime errors.
Tabs converted to spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a211caf936
commit
03ce8fe924
2 changed files with 82 additions and 75 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Sep 11 22:05:51 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* bin/erb (ERB::Main#run): set ERB#filename so that it is used
|
||||
when reporting syntax/runtime errors. Tabs converted to spaces.
|
||||
|
||||
Sat Sep 10 10:17:03 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
|
||||
|
|
2
bin/erb
2
bin/erb
|
@ -113,9 +113,11 @@ EOU
|
|||
end
|
||||
|
||||
src = $<.read
|
||||
filename = $FILENAME
|
||||
exit 2 unless src
|
||||
trim = trim_mode_opt(trim_mode, disable_percent)
|
||||
erb = factory.new(src.untaint, safe_level, trim)
|
||||
erb.filename = filename
|
||||
if output
|
||||
if number
|
||||
l = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue