From 757540d2a0ad97e77376af3399d82db344743ddd Mon Sep 17 00:00:00 2001 From: ueno Date: Fri, 12 Aug 2005 05:12:48 +0000 Subject: [PATCH] Cut off __FILE__:__LINE__ from stack trace. --- lisp/server.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.10.4