NIFI-344 improving error message, and setting a placeHolder for the

field
This commit is contained in:
danbress 2015-02-19 18:15:29 -05:00
parent 10b5b3c907
commit 750c4ebb6c
2 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,7 @@ public class RemoteProcessGroupResource extends ApplicationResource {
}
if (!(uri.getScheme().equalsIgnoreCase("http") || uri.getScheme().equalsIgnoreCase("https"))) {
throw new IllegalArgumentException("The specified remote process group URL is invalid, only http and https are supported: " + requestProcessGroupDTO.getTargetUri());
throw new IllegalArgumentException("The specified remote process group URL is invalid because it is not http or https: " + requestProcessGroupDTO.getTargetUri());
}
// normalize the uri to the other controller
@ -866,7 +866,7 @@ public class RemoteProcessGroupResource extends ApplicationResource {
}
if (!(uri.getScheme().equalsIgnoreCase("http") || uri.getScheme().equalsIgnoreCase("https"))) {
throw new IllegalArgumentException("The specified remote process group URL is invalid, only http and https are supported: " + requestRemoteProcessGroup.getTargetUri());
throw new IllegalArgumentException("The specified remote process group URL is invalid because it is not http or https: " + requestRemoteProcessGroup.getTargetUri());
}
// normalize the uri to the other controller

View File

@ -20,7 +20,7 @@
<div class="setting">
<div class="setting-name">URL</div>
<div class="setting-field">
<input id="new-remote-process-group-uri" type="text" placeholder="https://"/>
<input id="new-remote-process-group-uri" type="text" placeholder="https://remotehost:8080/nifi"/>
</div>
</div>
</div>