# Request for newer Ruby version - better error message

**URL:** <https://www.ruby-forum.com/t/request-for-newer-ruby-version-better-error-message/71915>\
**Category:** Ruby\
**Created:** [October 12, 2006, 11:00am UTC](https://www.ruby-forum.com/t/request-for-newer-ruby-version-better-error-message/71915 "2006-10-12T11:00:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leslieviljoen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3d9bf3/32.png) [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Post date:** [October 12, 2006, 11:00am UTC](https://www.ruby-forum.com/t/request-for-newer-ruby-version-better-error-message/71915/1 "2006-10-12T11:00:54Z")

</div>

I have this line in my program:

@sigList \<\< {:imei =\> imei, :misdn =\> sim, :date =\> time[0…9], :batch  
=\> batch[1…3], :serial =\> serial}

I get this error:

D:/Work/Ruby/Massage/merge.rb:138:in `getSigMDB': undefined method`[]’ for nil:NilClass (NoMethodError)

I think this would be better:

D:/Work/Ruby/Massage/merge.rb:138:in `getSigMDB': undefined method`[]’ for nil:NilClass (NoMethodError) accessing object “time”

Les

–  
Man’s unfailing capacity to believe what he prefers to be true rather  
than what the evidence shows to be likely and possible has always  
astounded me. We long for a caring Universe which will save us from  
our childish mistakes, and in the face of mountains of evidence to the  
contrary we will pin all our hopes on the slimmest of doubts. God has  
not been proven not to exist, therefore he must exist.

- Prokhor Zakharov
