fix: show error when merging, but continue

This commit is contained in:
Folke Lemaitre 2022-12-20 13:36:18 +01:00
parent b8a005510c
commit f78d8bf376
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ function Spec:merge(old, new)
---@diagnostic disable-next-line: no-unknown
old[k] = values
else
error("Merging plugins is not supported for key `" .. k .. "`")
Util.error("Merging plugins is not supported for key `" .. k .. "`\n" .. vim.inspect({ old = old, new = new }))
end
else
---@diagnostic disable-next-line: no-unknown