diff options
author | SwissalpS <Luke@SwissalpS.ws> | 2020-06-28 16:50:45 +0200 |
---|---|---|
committer | SwissalpS <Luke@SwissalpS.ws> | 2020-06-28 16:50:45 +0200 |
commit | 947f5f96a02ba2c85b09d4176e618589ba1637ad (patch) | |
tree | 4d778d88be98bf5d0a19dfa7a7f393cd482636eb | |
parent | 13f78570ff15f5516e049cd838d8b01081dd7cdd (diff) | |
download | lite-xl-plugins-947f5f96a02ba2c85b09d4176e618589ba1637ad.tar.gz lite-xl-plugins-947f5f96a02ba2c85b09d4176e618589ba1637ad.zip |
output version warning for scale plugin
-rw-r--r-- | plugins/scalestatus.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/scalestatus.lua b/plugins/scalestatus.lua index 24f3956..03216b5 100644 --- a/plugins/scalestatus.lua +++ b/plugins/scalestatus.lua @@ -6,11 +6,13 @@ Depends on plugin scale.lua version >= 20200628_154010 --]] -local core = require "core" local scale = require "plugins.scale" -core.log_quiet(type(scale.get_scale)) -- make sure plugin is installed and has get_scale field -if not scale.get_scale then return false end +if not scale.get_scale then + local core = require "core" + core.error("Plugin 'scale' needs to be updated, scalestatus inactive.") + return false +end local config = require "core.config" local StatusView = require "core.statusview" |