DevKit: fix misleading error message

This commit is contained in:
Aleksey Pivovarov
2018-01-23 21:03:37 +03:00
parent 6f9668561c
commit 0db6f61c0a
2 changed files with 5 additions and 1 deletions
@@ -38,6 +38,7 @@ success.deployment.message.all=All Plugins Successfully Prepared For Deployment
##Idea Sdk
sdk.title=IntelliJ Platform Plugin SDK
jdk.specification=Please configure JDK
sandbox.specification=Please configure the sandbox
sandbox.home=Sandbox Home
sandbox.home.label=Sandbox Home:
+4 -1
View File
@@ -70,9 +70,12 @@ public class Sandbox implements ValidatableSdkAdditionalData {
@Override
public void checkValid(SdkModel sdkModel) throws ConfigurationException {
if (StringUtil.isEmpty(mySandboxHome) || getJavaSdk() == null) {
if (StringUtil.isEmpty(mySandboxHome)) {
throw new ConfigurationException(DevKitBundle.message("sandbox.specification"));
}
if (getJavaSdk() == null) {
throw new ConfigurationException(DevKitBundle.message("jdk.specification"));
}
}
void readExternal(Element element) throws InvalidDataException {