Skip to content

Commit

Permalink
fix(util): Util.try can now work without an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 5, 2023
1 parent 847ef09 commit e4f79a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function M.try(fn, opts)
end
level = level + 1
end
msg = msg .. "\n\n" .. err
msg = (msg and (msg .. "\n\n") or "") .. err
if #trace > 0 then
msg = msg .. "\n\n# stacktrace:\n" .. table.concat(trace, "\n")
end
Expand Down

0 comments on commit e4f79a4

Please sign in to comment.