From: ueno Date: Wed, 10 Aug 2005 11:35:40 +0000 (+0000) Subject: Remove the first line of stack trace. X-Git-Tag: channel-coding-branchpoint~173 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c4d2deec03a9b69c5f71ccd7af7800335f763e0a;p=elisp%2Friece.git Remove the first line of stack trace. --- 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