Skip to content

Commit d4bd3ca

Browse files
author
Michael Bahr
authored
Clarified assertNotNull messages
1 parent 1d8a630 commit d4bd3ca

File tree

1 file changed

+2
-2
lines changed
  • client/src/main/java/org/asynchttpclient/uri

1 file changed

+2
-2
lines changed

client/src/main/java/org/asynchttpclient/uri/Uri.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public Uri(String scheme,//
6161
String path,//
6262
String query) {
6363

64-
this.scheme = assertNotNull(scheme, "scheme");
64+
this.scheme = assertNotNull(scheme, "The scheme could not be resolved. Please provide a valid URL.");
6565
this.userInfo = userInfo;
66-
this.host = assertNotNull(host, "host");
66+
this.host = assertNotNull(host, "The host could not be resolved. Please provide a valid host.");
6767
this.port = port;
6868
this.path = path;
6969
this.query = query;

0 commit comments

Comments
 (0)