Skip to content

Commit 4a3115b

Browse files
committed
Review preflight error message localization.
1 parent a126904 commit 4a3115b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/main/java/ch/cyberduck/core/features/Directory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ default boolean isSupported(final Path workdir, final String filename) {
6464
*/
6565
default void preflight(final Path workdir, final String filename) throws BackgroundException {
6666
if(!workdir.attributes().getPermission().isWritable()) {
67-
throw new AccessDeniedException(MessageFormat.format(LocaleFactory.localizedString("Upload {0} failed", "Error"), filename));
67+
throw new AccessDeniedException(MessageFormat.format(LocaleFactory.localizedString(
68+
"Cannot create folder {0}", "Error"), filename)).withFile(workdir);
6869
}
6970
}
7071
}

core/src/main/java/ch/cyberduck/core/features/Touch.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ default boolean isSupported(final Path workdir, final String filename) {
5050
*/
5151
default void preflight(final Path workdir, final String filename) throws BackgroundException {
5252
if(!workdir.attributes().getPermission().isWritable()) {
53-
throw new AccessDeniedException(MessageFormat.format(LocaleFactory.localizedString("Upload {0} failed", "Error"), filename));
53+
throw new AccessDeniedException(MessageFormat.format(LocaleFactory.localizedString(
54+
"Cannot create {0}", "Error"), filename)).withFile(workdir);
5455
}
5556
}
5657
}

0 commit comments

Comments
 (0)