From: Eric Hodel Date: 2011-08-25T02:47:05+09:00 Subject: [ruby-core:39088] [Ruby 1.9 - Feature #5221] LoadEerror#path Issue #5221 has been updated by Eric Hodel. RubyGems parses the exception message to determine the filename so having LoadError#path would make things easier. Should we be able to raise a LoadError from ruby with #path set too? Like: raise LoadError.new("no such file -- #{path}", path) ---------------------------------------- Feature #5221: LoadEerror#path http://redmine.ruby-lang.org/issues/5221 Author: Koichi Sasada Status: Open Priority: Normal Assignee: Yukihiro Matsumoto Category: core Target version: 1.9.4 I read a part of activesupport and they add a method LoadError#path to return unloaded file name (*1). *1: https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/load_error.rb How about to add this method on trunk? This is a patch with some re-factoring around LoadError: http://www.atdot.net/sp/view/y5xeql/readonly?lang=diff -- http://redmine.ruby-lang.org