aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2017-10-25 17:48:07 +0200
committerGravatar Dmitry Lomov <dslomov@google.com>2017-10-26 10:58:53 +0200
commit71886678d4b6a71ce9bf01a768d7615bf394ce4d (patch)
treea807e33a8160e05ebd63d65abea47ed043c76ea6 /src/test/java
parent830969c61c33aef2daab324a66c84aced07862b5 (diff)
Windows,JNI,logging: improve error messages
In this commit: - introduce the MakeErrorMessage function, which creates a structured error message with file and line information of the error's origin - update all error messages in the Windows JNI library - simplify GetLastErrorMessage to just convert an error code to string, without prepending a cause Change-Id: Ia8162bfdaee37d4b7ccb3a46d6c8a861b0a1bd94 PiperOrigin-RevId: 173402968
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/windows/WindowsFileOperationsTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/windows/WindowsFileOperationsTest.java b/src/test/java/com/google/devtools/build/lib/windows/WindowsFileOperationsTest.java
index 383b5c8ad1..2f7483a0fd 100644
--- a/src/test/java/com/google/devtools/build/lib/windows/WindowsFileOperationsTest.java
+++ b/src/test/java/com/google/devtools/build/lib/windows/WindowsFileOperationsTest.java
@@ -115,7 +115,7 @@ public class WindowsFileOperationsTest {
WindowsFileOperations.isJunction(root + "/non-existent");
fail("expected to throw");
} catch (IOException e) {
- assertThat(e.getMessage()).contains("GetFileAttributes");
+ assertThat(e.getMessage()).contains("nativeIsJunction");
}
assertThat(Arrays.asList(new File(root + "/shrtpath/a").list())).containsExactly("file1.txt");
assertThat(Arrays.asList(new File(root + "/shrtpath/b").list())).containsExactly("file2.txt");