diff options
Diffstat (limited to 'plugins/scalestatus.lua')
-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" |