public
Rubygem
Description: Ramaze is a simple, light and modular open-source web application framework written in Ruby.
Homepage: http://ramaze.net
Clone URL: git://github.com/manveru/ramaze.git
Click here to lend your support to: ramaze and make a donation at www.pledgie.com !
Rescue in rapaste
manveru (author)
Tue Oct 07 20:24:14 -0700 2008
commit  17c819fbbc23592f6b36120772db8c1be52af0be
tree    ffe81b63f347272cc3fc51c7fc9ac1c5cbc2b875
parent  4313c83acf46283c5a1a7c415a7c9f0565a802eb
...
27
28
29
 
 
 
30
31
32
...
27
28
29
30
31
32
33
34
35
0
@@ -27,6 +27,9 @@ class Paste < Sequel::Model(:paste)
0
 
0
   def uv(text, style = STYLE, lines = true)
0
     Uv.parse(text, "xhtml", syntax, lines, style)
0
+  rescue ArgumentError => ex
0
+    Ramaze::Log::error(ex)
0
+    "<pre>#{text}</pre>"
0
   end
0
 
0
   def syntax_name

Comments