Skip to content

Commit f67d2a6

Browse files
authored
Merge pull request #1201 from Roni1993/patch-1
Provide Exception message for wrong Scheme
2 parents 0964808 + 47628ff commit f67d2a6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/github/dockerjava/core/NameParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public static void validateRepoName(String name) {
100100

101101
public static HostnameReposName resolveRepositoryName(String reposName) {
102102
if (reposName.contains("://")) {
103-
// It cannot contain a scheme!
104-
throw new InvalidRepositoryNameException();
103+
throw new InvalidRepositoryNameException("RepositoryName shouldn't contain a scheme");
105104
}
106105

107106
String[] nameParts = reposName.split("/", 2);

0 commit comments

Comments
 (0)