| ... | @@ -29,7 +29,7 @@ pub fn close(self: *Self) void { | ... | @@ -29,7 +29,7 @@ pub fn close(self: *Self) void { |
| 29 | | 29 | |
| 30 | fn prepare(self: *Self, comptime query: string) !sqlite.StatementType(.{}, query) { | 30 | fn prepare(self: *Self, comptime query: string) !sqlite.StatementType(.{}, query) { |
| 31 | return self.db.prepare(query) catch |err| switch (err) { | 31 | return self.db.prepare(query) catch |err| switch (err) { |
| 32 | error.SQLiteError => std.debug.panic("{f}", .{self.db.getDetailedError()}), | 32 | error.SQLiteError => std.debug.panic("`{s}`: {f}", .{ query, self.db.getDetailedError() }), |
| 33 | else => return err, | 33 | else => return err, |
| 34 | }; | 34 | }; |
| 35 | } | 35 | } |