From: ueno Date: Thu, 11 Aug 2005 07:43:35 +0000 (+0000) Subject: Cut the first line of stack trace. X-Git-Tag: channel-coding-branchpoint~157 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e5c91f4adfbb6b3fc530d9042822053d580701c7;p=elisp%2Friece.git Cut the first line of stack trace. --- diff --git a/lisp/server.rb b/lisp/server.rb index ddd5d2e..903e933 100644 --- a/lisp/server.rb +++ b/lisp/server.rb @@ -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