Skip to content

Commit

Permalink
Fix error message for ObjectSpace disabled + non-Class specified.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/branches/jruby-1_2@9349 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed Mar 5, 2009
1 parent d1df1a6 commit 30c0e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/RubyObjectSpace.java
Expand Up @@ -120,7 +120,7 @@ public static IRubyObject each_object(ThreadContext context, IRubyObject recv, I
int count = 0;
if (rubyClass != runtime.getClassClass()) {
if (!runtime.isObjectSpaceEnabled()) {
throw runtime.newRuntimeError("ObjectSpace is disabled; each_object will only work with Class, pass +O to enable");
throw runtime.newRuntimeError("ObjectSpace is disabled; each_object will only work with Class, pass -X+O to enable");
}
Iterator iter = recv.getRuntime().getObjectSpace().iterator(rubyClass);

Expand Down

0 comments on commit 30c0e20

Please sign in to comment.