diff --git a/changelog.html b/changelog.html index daa40f2042..eca97fe007 100644 --- a/changelog.html +++ b/changelog.html @@ -55,7 +55,9 @@ Upcoming changes diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index c39faa720b..a93ef736d0 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -1071,7 +1071,7 @@ public class Util { if (x2 instanceof UnsupportedOperationException) { return true; // no symlinks on this platform } - if (Functions.isWindows() && String.valueOf(x2).contains("A required privilege is not held by the client.")) { + if (Functions.isWindows() && String.valueOf(x2).contains("java.nio.file.FileSystemException")) { if (warnedSymlinks.compareAndSet(false, true)) { LOGGER.warning("Symbolic links enabled on this platform but disabled for this user; run as administrator or use Local Security Policy > Security Settings > Local Policies > User Rights Assignment > Create symbolic links"); }