Skip to content

Commit cc08b2e

Browse files
committed
SImpl
1 parent f50fb8f commit cc08b2e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/java/com/google/devtools/build/lib/windows/WindowsFileSystem.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,8 @@ public void createSymbolicLink(
9999
// Otherwise, create a junction.
100100
WindowsFileOperations.createJunction(link.toString(), target.toString());
101101
}
102-
} catch (FileAlreadyExistsException e) {
103-
throw new IOException(linkPath + ERR_FILE_EXISTS, e);
104-
} catch (AccessDeniedException e) {
105-
throw new IOException(linkPath + ERR_PERMISSION_DENIED, e);
106-
} catch (NoSuchFileException e) {
107-
throw new FileNotFoundException(linkPath + ERR_NO_SUCH_FILE_OR_DIR);
102+
} catch (IOException e) {
103+
throw translateNioToIoException(linkPath, e);
108104
}
109105
}
110106

0 commit comments

Comments
 (0)