diff options
author | Waqas Hussain <waqas20@gmail.com> | 2017-09-24 18:23:45 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2017-09-24 18:23:45 -0400 |
commit | 082022c2a39fa7441fc16a5af67b34d6dfe10675 (patch) | |
tree | 3a86da85c0ff7c8956c3dbb84edb7d67840aa47c /prosodyctl | |
parent | b1c9ee295bce644ad1af4aa495bf3c093329b705 (diff) | |
download | prosody-082022c2a39fa7441fc16a5af67b34d6dfe10675.tar.gz prosody-082022c2a39fa7441fc16a5af67b34d6dfe10675.zip |
prosodyctl check: Fix traceback when no modules_enabled are defined (e.g., a completely empty config)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1032,7 +1032,7 @@ function commands.check(arg) suggested_global_modules = set.intersection(suggested_global_modules or set.new(options.modules_enabled), set.new(options.modules_enabled)); end end - if not suggested_global_modules:empty() then + if suggested_global_modules and not suggested_global_modules:empty() then print(" Consider moving these modules into modules_enabled in the global section:") print(" "..tostring(suggested_global_modules / function (x) return ("%q"):format(x) end)); end |