Skip to content

Commit 27e794a

Browse files
Print errmsg and disable persistence on a bad path
Co-authored-by: Alexander Courtis <alex@courtis.org>
1 parent 6e9b5f3 commit 27e794a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/nvim-tree/marks/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ local function save_bookmarks(marks, opts)
3030
file:write(vim.json.encode(data))
3131
file:close()
3232
end
33+
else
34+
notify.warn("Invalid marks.save_path, disabling persistence: " .. errmsg)
35+
opts.marks.enable_persistence = false
3336
end
3437

3538
local function load_bookmarks(opts)

0 commit comments

Comments
 (0)