Skip to content

Instantly share code, notes, and snippets.

@kronos
Created April 1, 2010 21:20
Show Gist options
  • Select an option

  • Save kronos/352379 to your computer and use it in GitHub Desktop.

Select an option

Save kronos/352379 to your computer and use it in GitHub Desktop.
diff --git a/kernel/common/global.rb b/kernel/common/global.rb
index fb80419..4cbbd1e 100644
--- a/kernel/common/global.rb
+++ b/kernel/common/global.rb
@@ -84,7 +84,7 @@ module Rubinius
end
def illegal_set(*args)
- raise RuntimeError, "unable to set global"
+ raise NameError, "#{args[0]} is a read-only variable"
end
def set_hook(var, getter=nil, setter=nil, &block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment