Software /
code /
prosody
Diff
util/startup.lua @ 9878:dd61201fc5af
util.startup: Don't die if there are no config warnings to log (thanks buildbot)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 20 Mar 2019 13:44:29 +0000 |
parent | 9877:ded5303e1fde |
child | 10108:659ffa03f1e7 |
child | 10163:661feb336e18 |
line wrap: on
line diff
--- a/util/startup.lua Wed Mar 20 12:45:58 2019 +0000 +++ b/util/startup.lua Wed Mar 20 13:44:29 2019 +0000 @@ -101,8 +101,10 @@ 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