diff options
author | Matthew Wild <mwild1@gmail.com> | 2019-03-20 13:44:29 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2019-03-20 13:44:29 +0000 |
commit | c77d416cfffd6604cc4d9a633f9f7941f6fd5f10 (patch) | |
tree | 994f62b7cf18c4412fcb6daba4262c2b2995c239 | |
parent | 798be44f563b8764dad50e893f4b25268b42e5a8 (diff) | |
download | prosody-c77d416cfffd6604cc4d9a633f9f7941f6fd5f10.tar.gz prosody-c77d416cfffd6604cc4d9a633f9f7941f6fd5f10.zip |
util.startup: Don't die if there are no config warnings to log (thanks buildbot)
-rw-r--r-- | util/startup.lua | 6 |
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 |