From 4f52f126c4d039feda2fdcc2de686b2927aa95cd Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 6 Mar 2022 12:03:01 +0100 Subject: fix(async): set error() level to 2 --- lua/nvim-lsp-installer/core/async/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/nvim-lsp-installer/core/async/init.lua') diff --git a/lua/nvim-lsp-installer/core/async/init.lua b/lua/nvim-lsp-installer/core/async/init.lua index e9c753d2..45bf2398 100644 --- a/lua/nvim-lsp-installer/core/async/init.lua +++ b/lua/nvim-lsp-installer/core/async/init.lua @@ -97,12 +97,12 @@ exports.run_blocking = function(suspend_fn) return resolved == true end, 50) then if not ok then - error(result) + error(result, 2) end return result else cancel_coroutine() - error "async function failed to resolve in time." + error("async function failed to resolve in time.", 2) end end -- cgit v1.2.3-70-g09d2