From 39c8693bb3eef7db5d438ce7e28049b4e711be0c Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Tue, 24 May 2022 00:48:02 +0200 Subject: clarify the compile error --- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite.zig b/sqlite.zig index cb9ae35..ba117c4 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -2054,7 +2054,7 @@ pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type const StructTypeInfo = @typeInfo(StructType).Struct; if (comptime query.nb_bind_markers != StructTypeInfo.fields.len) { - @compileError(comptime std.fmt.comptimePrint("number of bind markers ({d}) not equal to number of fields ({d})", .{ + @compileError(comptime std.fmt.comptimePrint("expected {d} bind parameters but got {d}", .{ query.nb_bind_markers, StructTypeInfo.fields.len, })); -- cgit v1.2.3