aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/fs.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-06-12 01:37:47 +0200
committerWilliam Boman <william@redwill.se>2021-06-12 01:37:47 +0200
commit2fe2fc479f159906ef1a637935c681230acecbd0 (patch)
tree89b46ea1bd0079f7040b4cca54a95fd9daf3d44c /lua/nvim-lsp-installer/fs.lua
parentrust_analyzer: upgrade version to 2021-06-07 (#25) (diff)
downloadmason-2fe2fc479f159906ef1a637935c681230acecbd0.tar
mason-2fe2fc479f159906ef1a637935c681230acecbd0.tar.gz
mason-2fe2fc479f159906ef1a637935c681230acecbd0.tar.bz2
mason-2fe2fc479f159906ef1a637935c681230acecbd0.tar.lz
mason-2fe2fc479f159906ef1a637935c681230acecbd0.tar.xz
mason-2fe2fc479f159906ef1a637935c681230acecbd0.tar.zst
mason-2fe2fc479f159906ef1a637935c681230acecbd0.zip
fs: improved error messages
Diffstat (limited to 'lua/nvim-lsp-installer/fs.lua')
-rw-r--r--lua/nvim-lsp-installer/fs.lua4
1 files changed, 2 insertions, 2 deletions
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