Diff

mod_rest/mod_rest.lua @ 6263:10a1016d1c3a

Merge update
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Sun, 01 Jun 2025 11:43:16 +0700
parent 6244:c71d8bc77c95
child 6272:ed6fa901cf94
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua	Sun Jun 01 11:41:42 2025 +0700
+++ b/mod_rest/mod_rest.lua	Sun Jun 01 11:43:16 2025 +0700
@@ -664,6 +664,7 @@
 
 -- strip some stuff, notably the optional traceback table that casues stack overflow in util.json
 local function simplify_error(e)
+	if not e then return end
 	return {
 		type = e.type;
 		condition = e.condition;