aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-11 14:27:28 +0200
committerKim Alvefur <zash@zash.se>2020-10-11 14:27:28 +0200
commitbb3948c85772f99ab69876412e904b373841835d (patch)
tree01fc965a4cfbabaded1842dc73cc097a8da7425d /core
parentc5933e9ed7902f748e561d92b741d09468ba8067 (diff)
downloadprosody-bb3948c85772f99ab69876412e904b373841835d.tar.gz
prosody-bb3948c85772f99ab69876412e904b373841835d.zip
core.modulemanager: Fix error if installer path missing
Happens if run outside prosody. Noticed because because the storage tests fail.
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index b89c82d7..3f4233e6 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -199,7 +199,7 @@ local function do_load_module(host, module_name, state)
api_instance.path = err;
local custom_plugins = prosody.paths.installer;
- if err:sub(1, #custom_plugins+1) == custom_plugins.."/" then
+ if custom_plugins and err:sub(1, #custom_plugins+1) == custom_plugins.."/" then
-- Stage 1: Make it work (you are here)
-- Stage 2: Make it less hacky (TODO)
local manifest = {};