# HG changeset patch # User Matthew Wild # Date 1553089469 0 # Node ID dd61201fc5afc2aa4d95d2a042e87f2fb9631240 # Parent ded5303e1fdeda032cb770688b79ee030c722891 util.startup: Don't die if there are no config warnings to log (thanks buildbot) diff -r ded5303e1fde -r dd61201fc5af util/startup.lua --- 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