Parse errors prevent proper usage

Kevin Ballard kevin at sb.org
Fri Sep 16 05:03:40 EDT 2005


I just went to http://127.0.0.1:37004/http://___._/2005/09/13/ 
theHoodwinkdBirthdayCake.html and saw no hoodwinks, so I checked the  
output from MouseHole and found the following:

Is there any way to make it gracefully handle parse errors like this?

[2005-09-16 04:58:50] ERROR Exception: Illegal character '&' in raw  
string "this just keeps getting creepier&"
         /usr/lib/ruby/1.8/rexml/text.rb:90:in `initialize'
         /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:38:in `new'
         /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:38:in `parse'
         /usr/lib/ruby/1.8/rexml/document.rb:176:in `build'
         /usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
         (eval):339:in `new'
         (eval):339:in `archive_html'
         (eval):350:in `call'
         (eval):350:in `json_read'
         (eval):348:in `open_uri'
         /usr/lib/ruby/1.8/open-uri.rb:424:in `open'
         /usr/lib/ruby/1.8/open-uri.rb:85:in `open'
         (eval):348:in `json_read'
         (eval):269:in `setup'
         (eval):350:in `call'
         (eval):350:in `json_read'
         (eval):348:in `open_uri'
         /usr/lib/ruby/1.8/open-uri.rb:424:in `open'
         /usr/lib/ruby/1.8/open-uri.rb:85:in `open'
         (eval):348:in `json_read'
         (eval):258:in `load_user_script'
         (eval):255:in `[]'
         ./lib/mouseHole.rb:851:in `do_rewrite'
         ./lib/mouseHole.rb:277:in `upwink'
         ./lib/mouseHole.rb:265:in `each_fresh_script'
         ./lib/mouseHole.rb:117:in `each'
         ./lib/mouseHole.rb:117:in `each_fresh_script'
         ./lib/mouseHole.rb:265:in `upwink'
         /usr/lib/ruby/1.8/webrick/httpproxy.rb:156:in `call'
         /usr/lib/ruby/1.8/webrick/httpproxy.rb:156:in `proxy_service'
         /usr/lib/ruby/1.8/webrick/httpproxy.rb:29:in `service'
         ./lib/mouseHole.rb:100:in `service'
         /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
         /usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
         /usr/lib/ruby/1.8/webrick/server.rb:144:in `start'
         /usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
         /usr/lib/ruby/1.8/webrick/server.rb:94:in `start'
         /usr/lib/ruby/1.8/webrick/server.rb:89:in `each'
         /usr/lib/ruby/1.8/webrick/server.rb:89:in `start'
         /usr/lib/ruby/1.8/webrick/server.rb:79:in `start'
         /usr/lib/ruby/1.8/webrick/server.rb:79:in `start'
         ./bin/mouseHole:64

-- 
Kevin Ballard
kevin at sb.org
http://www.tildesoft.com
http://kevin.sb.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2378 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/mousehole-scripters/attachments/20050916/68b1814e/smime-0001.bin


More information about the Mousehole-scripters mailing list