Skip to content

Commit

Permalink
fix: crash in error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Dec 23, 2023
1 parent 8b407bb commit 4185249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/conform/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ M.format_async = function(bufnr, formatters, range, opts, callback)
err = {
code = errors.ERROR_CODE.CONCURRENT_MODIFICATION,
message = string.format(
"Async formatter discarding changes for %s: concurrent modification",
vim.api.nvim_buf_get_name(bufnr)
"Async formatter discarding changes for %d: concurrent modification",
bufnr
),
}
else
Expand Down

0 comments on commit 4185249

Please sign in to comment.