./lib/overload/object.rb in lux-fw-0.1.35 vs ./lib/overload/object.rb in lux-fw-0.2.1
- old
+ new
@@ -10,9 +10,10 @@
end
def die desc=nil, exp_object=nil
desc ||= 'died without desc'
desc = '%s: %s' % [exp_object.class, desc] if exp_object
+ puts desc.red
raise desc
end
# this will capture plain Hash and HashWithIndifferentAccess
def is_hash?