From: ueno Date: Fri, 12 Aug 2005 05:12:48 +0000 (+0000) Subject: Cut off __FILE__:__LINE__ from stack trace. X-Git-Tag: channel-coding-branchpoint~128 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=757540d2a0ad97e77376af3399d82db344743ddd;p=elisp%2Friece.git Cut off __FILE__:__LINE__ from stack trace. --- diff --git a/lisp/server.rb b/lisp/server.rb index 05220b8..107a1f0 100644 --- a/lisp/server.rb +++ b/lisp/server.rb @@ -103,7 +103,8 @@ class Server Thread.current[:rubyserv_response] = eval(r, exec_env.empty_binding) rescue Exception => e Thread.current[:rubyserv_error] = true - Thread.current[:rubyserv_response] = e.to_s.sub(/\A.*?\n/, '') + Thread.current[:rubyserv_response] = + e.to_s.sub(/\A.*?\n#{Regexp.quote(__FILE__)}:\d+: /o, '') end send_line("# exit #{name}\r\n") end