Skip to content

Commit a126904

Browse files
committed
Add missing error message title localization.
1 parent 645b612 commit a126904

File tree

21 files changed

+56
-51
lines changed

21 files changed

+56
-51
lines changed

azure/src/main/java/ch/cyberduck/core/azure/AzureReadFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public InputStream read(final Path file, final TransferStatus status, final Conn
8080
}
8181
catch(IndexOutOfBoundsException e) {
8282
// If offset is invalid
83-
throw new DefaultExceptionMappingService().map(e);
83+
throw new DefaultExceptionMappingService().map("Download {0} failed", e, file);
8484
}
8585
}
8686
return new ProxyInputStream(in) {

backblaze/src/main/java/ch/cyberduck/core/b2/B2CopyFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public Path copy(final Path source, final Path target, final TransferStatus stat
6060
throw new B2ExceptionMappingService(fileid).map("Cannot copy {0}", e, source);
6161
}
6262
catch(IOException e) {
63-
throw new DefaultIOExceptionMappingService().map(e);
63+
throw new DefaultIOExceptionMappingService().map("Cannot copy {0}", e, source);
6464
}
6565
}
6666

backblaze/src/main/java/ch/cyberduck/core/b2/B2DeleteFeature.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void delete(final Map<Path, TransferStatus> files, final PasswordCallback
8585
log.warn(String.format("Ignore failure %s deleting placeholder file for %s", e.getMessage(), file));
8686
}
8787
catch(IOException e) {
88-
throw new DefaultIOExceptionMappingService().map(e);
88+
throw new DefaultIOExceptionMappingService().map("Cannot delete {0}", e, file);
8989
}
9090
}
9191
else if(file.isFile()) {
@@ -119,7 +119,7 @@ else if(file.isFile()) {
119119
throw new B2ExceptionMappingService(fileid).map("Cannot delete {0}", e, file);
120120
}
121121
catch(IOException e) {
122-
throw new DefaultIOExceptionMappingService().map(e);
122+
throw new DefaultIOExceptionMappingService().map("Cannot delete {0}", e, file);
123123
}
124124
}
125125
fileid.cache(file, null);
@@ -137,7 +137,7 @@ else if(file.isFile()) {
137137
throw new B2ExceptionMappingService(fileid).map("Cannot delete {0}", e, file);
138138
}
139139
catch(IOException e) {
140-
throw new DefaultIOExceptionMappingService().map(e);
140+
throw new DefaultIOExceptionMappingService().map("Cannot delete {0}", e, file);
141141
}
142142
}
143143
}

backblaze/src/main/java/ch/cyberduck/core/b2/B2DirectoryFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public Path mkdir(final Path folder, final TransferStatus status) throws Backgro
8080
throw new B2ExceptionMappingService(fileid).map("Cannot create folder {0}", e, folder);
8181
}
8282
catch(IOException e) {
83-
throw new DefaultIOExceptionMappingService().map(e);
83+
throw new DefaultIOExceptionMappingService().map("Cannot create folder {0}", e, folder);
8484
}
8585
}
8686

backblaze/src/main/java/ch/cyberduck/core/b2/B2FindFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public boolean find(final Path file, final ListProgressListener listener) throws
7272
throw new B2ExceptionMappingService(fileid).map("Failure to read attributes of {0}", e, file);
7373
}
7474
catch(IOException e) {
75-
throw new DefaultIOExceptionMappingService().map(e);
75+
throw new DefaultIOExceptionMappingService().map("Failure to read attributes of {0}", e, file);
7676
}
7777
}
7878
}

backblaze/src/main/java/ch/cyberduck/core/b2/B2LargeCopyFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public int compare(final B2UploadPartResponse o1, final B2UploadPartResponse o2)
139139
throw new B2ExceptionMappingService(fileid).map("Cannot copy {0}", e, source);
140140
}
141141
catch(IOException e) {
142-
throw new DefaultIOExceptionMappingService().map(e);
142+
throw new DefaultIOExceptionMappingService().map("Cannot copy {0}", e, source);
143143
}
144144
finally {
145145
pool.shutdown(false);

backblaze/src/main/java/ch/cyberduck/core/b2/B2LargeUploadPartService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public int compare(final B2FileInfoResponse o1, final B2FileInfoResponse o2) {
108108
throw new B2ExceptionMappingService(fileid).map("Upload {0} failed", e, file);
109109
}
110110
catch(IOException e) {
111-
throw new DefaultIOExceptionMappingService().map("Cannot delete {0}", e, file);
111+
throw new DefaultIOExceptionMappingService().map("Upload {0} failed", e, file);
112112
}
113113
}
114114

box/src/main/java/ch/cyberduck/core/box/BoxChunkedWriteFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public UploadedPart handleEntity(final HttpEntity entity1) throws IOException {
8787
return new File().size(response.getSize()).sha1(response.getSha1()).id(response.getPartId());
8888
}
8989
catch(HttpResponseException e) {
90-
throw new DefaultHttpResponseExceptionMappingService().map(e);
90+
throw new DefaultHttpResponseExceptionMappingService().map("Upload {0} failed", e, file);
9191
}
9292
catch(IOException e) {
9393
throw new DefaultIOExceptionMappingService().map("Upload {0} failed", e, file);

box/src/main/java/ch/cyberduck/core/box/BoxWriteFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Files handleEntity(final HttpEntity entity) throws IOException {
125125
throw new NotfoundException(file.getAbsolute());
126126
}
127127
catch(HttpResponseException e) {
128-
throw new DefaultHttpResponseExceptionMappingService().map(e);
128+
throw new DefaultHttpResponseExceptionMappingService().map("Upload {0} failed", e, file);
129129
}
130130
catch(IOException e) {
131131
throw new DefaultIOExceptionMappingService().map("Upload {0} failed", e, file);

brick/src/main/java/ch/cyberduck/core/brick/BrickWriteFeature.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@ public FileEntity call(final HttpEntity entity) throws BackgroundException {
113113
return null;
114114
default:
115115
EntityUtils.updateEntity(response, new BufferedHttpEntity(response.getEntity()));
116-
throw new DefaultHttpResponseExceptionMappingService().map(
117-
new HttpResponseException(response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase()));
116+
throw new DefaultHttpResponseExceptionMappingService().map("Upload {0} failed",
117+
new HttpResponseException(response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase()), file);
118118
}
119119
}
120120
finally {
121121
EntityUtils.consume(response.getEntity());
122122
}
123123
}
124124
catch(HttpResponseException e) {
125-
throw new DefaultHttpResponseExceptionMappingService().map(e);
125+
throw new DefaultHttpResponseExceptionMappingService().map("Upload {0} failed", e, file);
126126
}
127127
catch(IOException e) {
128-
throw new DefaultIOExceptionMappingService().map(e);
128+
throw new DefaultIOExceptionMappingService().map("Upload {0} failed", e, file);
129129
}
130130
}
131131

0 commit comments

Comments
 (0)