changeset 1438:a47021c3da1e

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jan 2020 21:09:51 -0700
parents 3e185b27f982
children 67bed466460e
files src/luan/modules/http/Http.luan
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/http/Http.luan	Tue Jan 07 21:03:57 2020 -0700
+++ b/src/luan/modules/http/Http.luan	Tue Jan 14 21:09:51 2020 -0700
@@ -163,12 +163,13 @@
 	return java
 end
 
-function Http.error_priority(java_request,e)
+function Http.error_priority(e)
 	return "error"
 end
 
 function Http.handle_error(java_request,e)
-	local call = Http.error_priority(java_request,e)
+	Http.new_request(java_request)
+	local call = Http.error_priority(e)
 	local err = e.get_stack_trace_string()
 	logger[call](err.."\n"..trim(java_request.rawHead).."\n")
 	local msg = "Internel Server Error\n\n"..err