change diagnostic message to be more user friendly

This commit is contained in:
Emil Lerch 2026-09-02 10:17:31 -07:00
parent 08f06df810
commit 28fc4f858f
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -876,7 +876,7 @@ pub const RecordIterator = struct {
var buf: [256]u8 = undefined; var buf: [256]u8 = undefined;
const msg = std.fmt.bufPrint( const msg = std.fmt.bufPrint(
&buf, &buf,
"reset line for next item, first char not '{c}'", "expected '{c}' or end of line after value; check the length prefix",
.{state.field_delimiter}, .{state.field_delimiter},
) catch @panic("bufPrint has no room but should absolutely have more room"); ) catch @panic("bufPrint has no room but should absolutely have more room");