aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/webrick.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/webrick.rb')
-rw-r--r--lib/sisu/v3/webrick.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sisu/v3/webrick.rb b/lib/sisu/v3/webrick.rb
index ea0a494f..f8189bba 100644
--- a/lib/sisu/v3/webrick.rb
+++ b/lib/sisu/v3/webrick.rb
@@ -74,7 +74,10 @@ def brick(port,get='')
s.mount('/cgi-bin', HTTPServlet::FileHandler, cgi_dir, { FancyIndexing: true })
trap("INT"){ s.shutdown }
s.start
- rescue; SiSU_Errors::InfoError.new($!,$@,'-W',nil).error #fix
+ rescue
+ SiSU_Errors::InfoError.new($!,$@,'-W',nil).error do #fix
+ __LINE__.to_s + ':' + __FILE__
+ end
ensure
end
end
@@ -167,7 +170,9 @@ WOK
brick(@port,get)
rescue;
require_relative 'sysenv' # sysenv.rb
- SiSU_Errors::InfoError.new($!,$@,'-W',nil).error #fix
+ SiSU_Errors::InfoError.new($!,$@,'-W',nil).error do #fix
+ __LINE__.to_s + ':' + __FILE__
+ end
ensure
end
__END__