Forum: Ruby error message help

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Afabd225e57b433553138fead5a820d4?d=identicon&s=25 Raj Sahae (rajsahae)
on 2007-03-08 23:41
(Received via mailing list)
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
15d414adea9682825d64e89b4cf1fbfd?d=identicon&s=25 M. Ayhan (molla5)
on 2007-03-08 23:54
(Received via mailing list)
can you send the full source?

Raj Sahae <rajsahae@gmail.com> 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
5e8fd591aeccbffd6fc93c171ac4fa43?d=identicon&s=25 Aaron Smith (warhero)
on 2007-03-08 23:55
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
This topic is locked and can not be replied to.