From 7c0ea0471ee79045068b4d4ad386ac4f5e697a5d Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 27 Apr 2026 16:44:34 +0800 Subject: [PATCH] add debug --- src/http_handler/http_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_handler/http_protocol.erl b/src/http_handler/http_protocol.erl index 6f829f4..b24140d 100644 --- a/src/http_handler/http_protocol.erl +++ b/src/http_handler/http_protocol.erl @@ -47,7 +47,7 @@ init(Req0, Opts = [Mod|_]) -> {ok, Req2, Opts}; _:Error:Stack -> logger:warning("[http_handler] get error: ~p, stack: ~p", [Error, Stack]), - ErrorBin = term_to_binary(Error), + ErrorBin = sdlan_util:term_to_binary(Error), Req2 = cowboy_req:reply(500, #{ <<"Content-Type">> => <<"text/html;charset=utf-8">> }, <<"Internal Server Error: ", ErrorBin/binary>>, Req1),