Skip to content

Commit 1913822

Browse files
committed
Fix errors
1 parent bd23248 commit 1913822

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/codehaus/plexus/components/secdispatcher/internal/sources/EnvMasterPasswordSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public String handle(URI uri) throws SecDispatcherException {
4141
}
4242
String value = System.getenv(uri.getSchemeSpecificPart());
4343
if (value == null) {
44-
throw new SecDispatcherException("Environment variable '" + uri.getPath() + "' not found");
44+
throw new SecDispatcherException("Environment variable '" + uri.getSchemeSpecificPart() + "' not found");
4545
}
4646
return value;
4747
}

src/main/java/org/codehaus/plexus/components/secdispatcher/internal/sources/SystemPropertyMasterPasswordSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public String handle(URI uri) throws SecDispatcherException {
4141
}
4242
String value = System.getProperty(uri.getSchemeSpecificPart());
4343
if (value == null) {
44-
throw new SecDispatcherException("System property '" + uri.getPath() + "' not found");
44+
throw new SecDispatcherException("System property '" + uri.getSchemeSpecificPart() + "' not found");
4545
}
4646
return value;
4747
}

0 commit comments

Comments
 (0)