[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

error message help

Raj Sahae

3/8/2007 10:41:00 PM

My program is hitting an error and showing me:
c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in `+': can't convert nil into
String (TypeError)
from c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in `open'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:741:in `open'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in `new'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in `open'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
... 12 levels...
from stclient.rb:30:in `run'
from stclient.rb:30:in `initialize'
from stclient.rb:36:in `new'
from stclient.rb:36

How do I get ruby to show me the middle 12 levels? The problem is
probably in the middle there, but I don't know what method.

Raj

1 Answer

warhero

3/8/2007 10:56:00 PM

0

Raj Sahae wrote:
> My program is hitting an error and showing me:
> c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in `+': can't convert nil into
> String (TypeError)
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in `open'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:741:in `open'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in `new'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in `open'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
> from c:/ruby/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
> ... 12 levels...
> from stclient.rb:30:in `run'
> from stclient.rb:30:in `initialize'
> from stclient.rb:36:in `new'
> from stclient.rb:36
>
> How do I get ruby to show me the middle 12 levels? The problem is
> probably in the middle there, but I don't know what method.
>
> Raj

try something like:

try
blah
catch( Exception => e)
puts e.backtrace
end

--
Posted via http://www.ruby-....