update error message

pull/88/head
Szymon Kazmierczak 2020-05-06 15:22:35 +01:00 committed by Szymon Kazmierczak
parent 44bde7feb9
commit 39d334cab5
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ class Action {
static checkCompatibility() { static checkCompatibility() {
const currentPlatform = process.platform; const currentPlatform = process.platform;
if (!Action.supportedPlatforms.includes(currentPlatform)) { if (!Action.supportedPlatforms.includes(currentPlatform)) {
throw new Error(`Currently ${currentPlatform}-platform is not supported`); throw new Error(
`Selected target build platform: {platform} is incorrect/not supported. Please refer to Unity BuildTarget for a list of available platforms`,
);
} }
} }
} }