log actual path of notmuch db
This commit is contained in:
parent
945b8d23f7
commit
978ba09c8b
1 changed files with 5 additions and 1 deletions
|
@ -292,8 +292,12 @@ pub fn openNotmuchDb(allocator: std.mem.Allocator, relative_path: []const u8, em
|
|||
var cwd_buf: [std.fs.max_path_bytes]u8 = undefined;
|
||||
const cwd = try std.fs.cwd().realpath(".", cwd_buf[0..]);
|
||||
const db_path = try std.fs.path.joinZ(allocator, &[_][]const u8{ cwd, relative_path });
|
||||
errdefer allocator.free(db_path);
|
||||
|
||||
const db = try notmuch.Db.open(db_path, null);
|
||||
const db = notmuch.Db.open(db_path, null) catch |err| {
|
||||
std.log.err("Could not open {s}", .{db_path});
|
||||
return err;
|
||||
};
|
||||
|
||||
const email = email_engine orelse Email.init();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue