From 2fe2fc479f159906ef1a637935c681230acecbd0 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 12 Jun 2021 01:37:47 +0200 Subject: fs: improved error messages --- lua/nvim-lsp-installer/fs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/nvim-lsp-installer/fs.lua b/lua/nvim-lsp-installer/fs.lua index 6277921b..d9c4ac93 100644 --- a/lua/nvim-lsp-installer/fs.lua +++ b/lua/nvim-lsp-installer/fs.lua @@ -3,7 +3,7 @@ local M = {} function M.mkdirp(path) if os.execute(("mkdir -p %q"):format(path)) ~= 0 then - error(("mkdirp: Could not create directory %s"):format(path)) + error(("mkdirp: Could not create directory %q"):format(path)) end end @@ -31,7 +31,7 @@ end function M.rmrf(path) -- giggity if os.execute(("rm -rf %q"):format(path)) ~= 0 then - error(("Could not remove LSP server directory %s"):format(path)) + error(("rmrf: Could not remove directory %q"):format(path)) end end -- cgit v1.2.3-70-g09d2