From 055bbb9bf2fe1c65c45c4180846e0d20fdcff05d Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Tue, 31 May 2022 19:00:22 +0100 Subject: [PATCH] style: properly explain what version we default to upon failing --- server/src/lib/constants/version.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/lib/constants/version.ts b/server/src/lib/constants/version.ts index 9cad1f8c3..3b464ab88 100644 --- a/server/src/lib/constants/version.ts +++ b/server/src/lib/constants/version.ts @@ -8,7 +8,7 @@ import fs from "fs"; import path from "path"; // As is with all front-facing zkldi projects, the version names for tachi-server -// are from an album I like. In this case, the album is Portishead - Dummy. +// are from an album I like. In this case, the al(bum is Portishead - Dummy. // The fact that this album is very similar to Mezzanine // - the album used for Kamaitachi v1 - is deliberate. :) - zkldi const PORTISHEAD_DUMMY = [ @@ -58,7 +58,7 @@ const semverInfo = semver.parse(packageJSON.version); if (!semverInfo) { logger.warn( - `Couldn't parse semverInfo out of package.json? Got a string of '${packageJSON.version}', but couldn't parse. Defaulting to 0.` + `Couldn't parse semverInfo out of package.json? Got a string of '${packageJSON.version}', but couldn't parse. Defaulting to v0.0.0-unknown.` ); }