Improve error message for unset UNITY_EMAIL and UNITY_PASSWORD

pull/305/head
Andrew Kahr 2022-01-23 20:14:14 -08:00
parent a3cadeaf30
commit d6cc7fd22f
3 changed files with 115 additions and 113 deletions

3
dist/index.js vendored
View File

@ -441,7 +441,8 @@ class Docker {
unitySerial = process.env.UNITY_SERIAL;
}
if (!(process.env.UNITY_EMAIL && process.env.UNITY_PASSWORD)) {
throw new Error(`Unity email and password must be set for windows based builds`);
throw new Error(`Unity email and password must be set for Windows based builds. Make
sure to set them inside UNITY_EMAIL and UNITY_PASSWORD in Github Secrets.`);
}
yield this.setupWindowsRun(platform);
this.validateWindowsPlatformRequirements(platform);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -117,7 +117,8 @@ class Docker {
}
if (!(process.env.UNITY_EMAIL && process.env.UNITY_PASSWORD)) {
throw new Error(`Unity email and password must be set for windows based builds`);
throw new Error(`Unity email and password must be set for Windows based builds. Make
sure to set them inside UNITY_EMAIL and UNITY_PASSWORD in Github Secrets.`);
}
await this.setupWindowsRun(platform);