diff options
| author | 2025-02-16 00:02:03 +0100 | |
|---|---|---|
| committer | 2025-02-16 00:24:04 +0100 | |
| commit | 4fbc94048c7d075bbde80e64da02a2b175bd99a0 (patch) | |
| tree | dacb8ae06a939111996394aa00d4a69a501586e0 /examples | |
| parent | zigmod: update (diff) | |
| download | zig-sqlite-4fbc94048c7d075bbde80e64da02a2b175bd99a0.tar.gz zig-sqlite-4fbc94048c7d075bbde80e64da02a2b175bd99a0.tar.xz zig-sqlite-4fbc94048c7d075bbde80e64da02a2b175bd99a0.zip | |
examples(zigcrypto): better error message
Diffstat (limited to '')
| -rw-r--r-- | examples/zigcrypto_test.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/zigcrypto_test.zig b/examples/zigcrypto_test.zig index 9c966ac..9340f99 100644 --- a/examples/zigcrypto_test.zig +++ b/examples/zigcrypto_test.zig | |||
| @@ -34,7 +34,7 @@ pub fn main() anyerror!void { | |||
| 34 | const result = sqlite.c.sqlite3_load_extension(db.db, extension_path, null, &pzErrMsg); | 34 | const result = sqlite.c.sqlite3_load_extension(db.db, extension_path, null, &pzErrMsg); |
| 35 | if (result != sqlite.c.SQLITE_OK) { | 35 | if (result != sqlite.c.SQLITE_OK) { |
| 36 | const err = sqlite.c.sqlite3_errstr(result); | 36 | const err = sqlite.c.sqlite3_errstr(result); |
| 37 | std.debug.panic("unable to load extension, err: {s}, err message: {s}\n", .{ err, std.mem.sliceTo(pzErrMsg, 0) }); | 37 | std.debug.panic("unable to load extension at path {s}, err: {s}, err message: {s}\n", .{ extension_path, err, std.mem.sliceTo(pzErrMsg, 0) }); |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | 40 | ||