diff --git a/core/lib.mjs b/core/lib.mjs index eb48606..f9a62c4 100644 --- a/core/lib.mjs +++ b/core/lib.mjs @@ -37,8 +37,8 @@ export default class ServiceCore { async init(module = null) { this.db = await GetDB(this.config, this.log, this.dbfilename) - this.core = new Core(this.db, this.util, this.log, () => { - let err = new Error('Got request to restart') + this.core = new Core(this.db, this.util, this.log, (msg) => { + let err = new Error('Got request to restart' + (msg ? ': ' + msg : '')) this.log.fatal(err) process.exit(0) })