Move start-up version string to the very beginning
parent
c45cd2bc70
commit
994a07843a
|
@ -5,6 +5,10 @@ if (nodeMajorVersion < 12) {
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print out bot and Node.js version
|
||||||
|
const { getPrettyVersion } = require("./botVersion");
|
||||||
|
console.log(`Starting Modmail ${getPrettyVersion()} on Node.js ${process.versions.node}`);
|
||||||
|
|
||||||
// Verify node modules have been installed
|
// Verify node modules have been installed
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
@ -76,9 +80,6 @@ function errorHandler(err) {
|
||||||
process.on("uncaughtException", errorHandler);
|
process.on("uncaughtException", errorHandler);
|
||||||
process.on("unhandledRejection", errorHandler);
|
process.on("unhandledRejection", errorHandler);
|
||||||
|
|
||||||
const { getPrettyVersion } = require("./botVersion");
|
|
||||||
console.log(`Starting Modmail ${getPrettyVersion()} on Node.js ${process.versions.node}`);
|
|
||||||
|
|
||||||
let testedPackage = "";
|
let testedPackage = "";
|
||||||
try {
|
try {
|
||||||
const packageJson = require("../package.json");
|
const packageJson = require("../package.json");
|
||||||
|
|
Loading…
Reference in New Issue