You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/11/26 17:10:10 UTC
[commons-vfs] 07/16: LocalFile: Fix exception message "Unknown message with code" and use an actual message code.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 1a92b8c8cedb911ef798940a464390af3835b7cb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 26 10:25:09 2021 -0500
LocalFile: Fix exception message "Unknown message with code" and use an
actual message code.
---
.../main/java/org/apache/commons/vfs2/provider/local/LocalFile.java | 2 +-
src/changes/changes.xml | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
index 3047625..dc60775 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
@@ -116,7 +116,7 @@ public class LocalFile extends AbstractFileObject<LocalFileSystem> {
try {
return Files.getLastModifiedTime(file.toPath()).toMillis();
} catch (final IOException e) {
- throw new FileSystemException(file.toString(), e);
+ throw new FileSystemException("vfs.provider/get-last-modified.error", file, e);
}
}
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index ee8cb29..2e499ec 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -65,6 +65,9 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">
Fix typos in error messages.
</action>
+ <action type="fix" dev="ggregory" due-to="Gary Gregory">
+ LocalFile: Fix exception message "Unknown message with code" and use an actual message code.
+ </action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Seth Falco">
Add vscode files to gitignore #205.