diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-02 18:18:19 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-02 18:18:19 -0500 |
commit | f897f8ff146733ce8dcab657a16fb1c054d46b2a (patch) | |
tree | 578f013f2d02da49c17b62f525a84afa9b2de66a | |
parent | f66e20b72d4a65b1dbdc589700dbe3049c71e3ae (diff) | |
download | lite-xl-plugin-manager-f897f8ff146733ce8dcab657a16fb1c054d46b2a.tar.gz lite-xl-plugin-manager-f897f8ff146733ce8dcab657a16fb1c054d46b2a.zip |
Slightly better diagonistcs.
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 1350a76..c5989e3 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -540,7 +540,7 @@ end -- incompatible: Plugin is not installed and conflicts with existing installed plugins. function Plugin.__index(self, idx) return rawget(self, idx) or Plugin[idx] end function Plugin.new(repository, metadata) - if type(metadata.id) ~= 'string' or metadata.id:find("[^a-z0-9%-_]") then error("plugin requires a valid id") end + if type(metadata.id) ~= 'string' or metadata.id:find("[^a-z0-9%-_]") then error("plugin requires a valid id " .. (metadata.id and "(" .. metadata.id .. " is invalid)" or "")) end local type = metadata.type or "plugin" local folder = metadata.type == "library" and "libraries" or "plugins" if metadata.path then metadata.path = metadata.path:gsub("/", PATHSEP) end |