From bd60170f3f36e5bc3871fd842b839e11aadf06ba Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Thu, 30 Jun 2022 16:36:20 -0400 Subject: [PATCH] throw error if unity version is auto in package mode --- src/model/input.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/model/input.ts b/src/model/input.ts index 6966546..b20890e 100644 --- a/src/model/input.ts +++ b/src/model/input.ts @@ -106,6 +106,12 @@ const Input = { // if in package mode, attempt to get the package's name, and ensure tests are present if (packageMode) { + if (unityVersion === 'auto') { + throw new Error( + 'Package mode is enabled, but unityVersion is set to "auto". Please manually set the unityVersion.', + ); + } + packageName = this.getPackageNameFromPackageJson(projectPath); this.verifyTestsFolderIsPresent(projectPath); }