From d4191c278f415fbe8f3696ff6d5d14e6000140cb Mon Sep 17 00:00:00 2001 From: zmstone Date: Mon, 30 Sep 2024 16:31:16 +0200 Subject: [PATCH] chore: refine error context Co-authored-by: Thales Macedo Garitezi --- src/commands/epgsql_cmd_prepared_query2.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/epgsql_cmd_prepared_query2.erl b/src/commands/epgsql_cmd_prepared_query2.erl index 8767043..74f27a1 100644 --- a/src/commands/epgsql_cmd_prepared_query2.erl +++ b/src/commands/epgsql_cmd_prepared_query2.erl @@ -66,8 +66,8 @@ zip(Name, Types, Params) -> error(#{cause => "prepared_data_types_and_column_count_mismatch", name => Name, types => Types, - types_count => length(Types), - values_count => length(Params) + type_count => length(Types), + column_count => length(Params) }) end.