Software /
code /
prosody
Changeset
8265:17ebd8ac8545
prosodyctl check: Fix traceback when no modules_enabled are defined (e.g., a completely empty config)
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 24 Sep 2017 18:23:45 -0400 |
parents | 8264:23aee8ccfe9b |
children | 8266:9a97dd174ec9 |
files | prosodyctl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Sun Sep 24 05:46:24 2017 +0200 +++ b/prosodyctl Sun Sep 24 18:23:45 2017 -0400 @@ -1032,7 +1032,7 @@ 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