| ... | @@ -177,8 +177,7 @@ fn Field(comptime T: type, comptime field_name: []const u8) type { | ... | @@ -177,8 +177,7 @@ fn Field(comptime T: type, comptime field_name: []const u8) type { |
| 177 | if (std.meta.trait.isIndexable(T) and std.mem.eql(u8, field_name, "len")) { | 177 | if (std.meta.trait.isIndexable(T) and std.mem.eql(u8, field_name, "len")) { |
| 178 | return usize; | 178 | return usize; |
| 179 | } | 179 | } |
| 180 | @compileLog(field_name); | 180 | @compileError(std.fmt.comptimePrint("pek: unknown field {s} on type {s}", .{ field_name, @typeName(T) })); |
| 181 | @compileLog(std.meta.fieldNames(T)); | | |
| 182 | } | 181 | } |
| 183 | | 182 | |
| 184 | fn entityLookupBefore(in: []const u8) ?htmlentities.Entity { | 183 | fn entityLookupBefore(in: []const u8) ?htmlentities.Entity { |