aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2019-03-20 13:44:29 +0000
committerMatthew Wild <mwild1@gmail.com>2019-03-20 13:44:29 +0000
commit20f878694972c7a5d6202b8cf62aa8ae97fe780f (patch)
tree994f62b7cf18c4412fcb6daba4262c2b2995c239 /util
parent6fc745f13a6ac47780c67a7e9efceb9b8785ada4 (diff)
downloadprosody-20f878694972c7a5d6202b8cf62aa8ae97fe780f.tar.gz
prosody-20f878694972c7a5d6202b8cf62aa8ae97fe780f.zip
util.startup: Don't die if there are no config warnings to log (thanks buildbot)
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 966f2934..7a1a95aa 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -101,8 +101,10 @@ end
function startup.log_startup_warnings()
dependencies.log_warnings();
- for _, warning in ipairs(config_warnings) do
- log("warn", "Configuration warning: %s", warning);
+ if config_warnings then
+ for _, warning in ipairs(config_warnings) do
+ log("warn", "Configuration warning: %s", warning);
+ end
end
end