Cut the first line of stack trace.
authorueno <ueno>
Thu, 11 Aug 2005 07:43:35 +0000 (07:43 +0000)
committerueno <ueno>
Thu, 11 Aug 2005 07:43:35 +0000 (07:43 +0000)
lisp/server.rb

index ddd5d2e..903e933 100644 (file)
@@ -80,7 +80,7 @@ class Server
       Thread.current[:rubyserv_response] = eval(r, B.module_eval('binding()'))
     rescue Exception => e
       Thread.current[:rubyserv_error] = true
-      Thread.current[:rubyserv_response] = e
+      Thread.current[:rubyserv_response] = e.to_s.sub(/\A.*?\n/, '')
     end
     puts("# exit #{name}\r\n")
   end