Software /
code /
prosody
Changeset
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 |
parents | 9877:ded5303e1fde |
children | 9882:18f025b3987d |
files | util/startup.lua |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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