R
Ramza Brown
Ignore the code itself.
puts "ERR: Could not parse document #{truncate(url)}"
But, I have noticed that whenever I have errors for example with
variables inside a string like above.
#{truncate(url)}
Here, I don't have a truncate method, so basically Ruby just stops. I
don't get an error and just guessed that is where the problem was?
That ruby hangs and doesnt produce an error. For example; I am also
working with threads so I can continue it is just hard to debug.
In anycase; why wouldnt an error be produced. Is there anything else
there that might just make Ruby stop?
def connect_http(url, id)
begin
puts "#{' '*8} #{id} process #{url}"
fetch_http_document(url)
rescue
puts "ERR: Could not parse document #{truncate(url)}"
puts "ERR: " + $!
end
end
--
Berlin Brown
(ramaza3 on freenode)
http://www.newspiritcompany.com
http://www.newspiritcompany.com/newforums
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/universe_home
puts "ERR: Could not parse document #{truncate(url)}"
But, I have noticed that whenever I have errors for example with
variables inside a string like above.
#{truncate(url)}
Here, I don't have a truncate method, so basically Ruby just stops. I
don't get an error and just guessed that is where the problem was?
That ruby hangs and doesnt produce an error. For example; I am also
working with threads so I can continue it is just hard to debug.
In anycase; why wouldnt an error be produced. Is there anything else
there that might just make Ruby stop?
def connect_http(url, id)
begin
puts "#{' '*8} #{id} process #{url}"
fetch_http_document(url)
rescue
puts "ERR: Could not parse document #{truncate(url)}"
puts "ERR: " + $!
end
end
--
Berlin Brown
(ramaza3 on freenode)
http://www.newspiritcompany.com
http://www.newspiritcompany.com/newforums
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/universe_home