Skip to content
Browse files

Raise an exception with a useful message to prevent hair-loss

  • Loading branch information...
1 parent 046a900 commit 85887999c23cf77b1e9de2c20ab40de95e4a8549 @halorgium halorgium committed Jul 24, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/extlib/module.rb
View
2 lib/extlib/module.rb
@@ -31,7 +31,7 @@ def nested_const_lookup(const_name)
end
# if we get this far then the nested constant was not found
- raise NameError
+ raise NameError, "uninitialized constant #{const_name}"
end
end # class Module

0 comments on commit 8588799

Please sign in to comment.
Something went wrong with that request. Please try again.