From c4d2deec03a9b69c5f71ccd7af7800335f763e0a Mon Sep 17 00:00:00 2001 From: ueno Date: Wed, 10 Aug 2005 11:35:40 +0000 Subject: [PATCH] Remove the first line of stack trace. --- lisp/rubyserv.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/rubyserv.rb b/lisp/rubyserv.rb index 7083834..99e7de6 100644 --- a/lisp/rubyserv.rb +++ b/lisp/rubyserv.rb @@ -62,7 +62,6 @@ class RubyServ return end code = deq_data unless code - p code puts("OK\r\n") @thr[name] = Thread.current Thread.current[:rubyserv_name] = name @@ -71,7 +70,7 @@ class RubyServ Thread.current[:rubyserv_response] = eval(code) rescue Exception => e Thread.current[:rubyserv_error] = true - Thread.current[:rubyserv_response] = e + Thread.current[:rubyserv_response] = e.to_s.sub(/\A.*?\n/m, '') end puts("# exit #{name}\r\n") end -- 1.7.10.4