Forum: Ruby-core [Ruby 1.9-Bug#3756][Open] Clarify Error Message for Frozen $LOADED_FEATURES

Posted by Run Paint Run Run (Guest)
on 2010-08-28 22:01
Attachment: load.c.patch (404 Bytes)
(Received via mailing list)
Bug #3756: Clarify Error Message for Frozen $LOADED_FEATURES
http://redmine.ruby-lang.org/issues/show/3756

Author: Run Paint Run Run
Status: Open, Priority: Low
Category: core
ruby -v: ruby 1.9.3dev (2010-08-28 trunk 29127) [i686-linux]

If $LOADED_FEATURES is frozen, `require` raises a RuntimeError when 
attempting to append to the Array. Unfortunately, the error message is 
particularly unhelpful for those unfamiliar with Ruby internals. The 
attached clarifies that $LOADED_FEATURES is frozen. It assumes that this 
scenario should continue to be fatal; arguably, a warning is more 
appropriate.
Posted by Nobuyoshi Nakada (Guest)
on 2010-08-29 05:57
(Received via mailing list)
Issue #3756 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

This issue was solved with changeset r29135.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/3756
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.