Skip to content

Commit

Permalink
Use utils.fmt_error in goto error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Jan 5, 2023
1 parent a9f21a2 commit 1077a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dap/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ function Session:_goto(line, source, col)
self.stopped_thread_id = nil
local goto_err = self:request('goto', params)
if goto_err then
utils.notify('Error executing goto: ' .. goto_err.message, vim.log.levels.ERROR)
utils.notify('Error executing goto: ' .. utils.fmt_error(goto_err), vim.log.levels.ERROR)
end
end)()
end
Expand Down

0 comments on commit 1077a86

Please sign in to comment.