Comparison

util/startup.lua @ 11052:1f42b08b134f

util.startup: Init util.error with defaults if none given
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Aug 2020 12:54:31 +0100
parent 11050:51be24b16e8a
child 11074:3473bc8d80c9
comparison
equal deleted inserted replaced
11051:08539aa129ee 11052:1f42b08b134f
545 end 545 end
546 return true; 546 return true;
547 end 547 end
548 548
549 function startup.init_errors() 549 function startup.init_errors()
550 require "util.error".configure(config.get("*", "error_library")); 550 require "util.error".configure(config.get("*", "error_library") or {});
551 end 551 end
552 552
553 function startup.make_host(hostname) 553 function startup.make_host(hostname)
554 return { 554 return {
555 type = "local", 555 type = "local",