mirror of https://github.com/apache/nifi.git
NIFI-344 improving error message, and setting a placeHolder for the
field
This commit is contained in:
parent
10b5b3c907
commit
750c4ebb6c
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue