Move start-up version string to the very beginning

cshd
Dragory 2020-11-22 13:00:10 +02:00
parent c45cd2bc70
commit 994a07843a
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,10 @@ if (nodeMajorVersion < 12) {
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
const fs = require("fs");
const path = require("path");
@ -76,9 +80,6 @@ function errorHandler(err) {
process.on("uncaughtException", errorHandler);
process.on("unhandledRejection", errorHandler);
const { getPrettyVersion } = require("./botVersion");
console.log(`Starting Modmail ${getPrettyVersion()} on Node.js ${process.versions.node}`);
let testedPackage = "";
try {
const packageJson = require("../package.json");