aboutsummaryrefslogtreecommitdiffstats
path: root/lib/importenv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/importenv.rb')
-rw-r--r--lib/importenv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/importenv.rb b/lib/importenv.rb
index c47fc1f6c5..8e1ba33b1d 100644
--- a/lib/importenv.rb
+++ b/lib/importenv.rb
@@ -7,7 +7,7 @@
# $USER = "matz"
# p ENV["USER"]
-warn "Warning: importenv is deprecated after Ruby 1.8.1 (no replacement)"
+warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: importenv is deprecated after Ruby 1.8.1 (no replacement)"
for k,v in ENV
next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k