diff options
author | Tom Tromey <tromey@redhat.com> | 2001-06-26 03:27:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-06-26 03:27:57 +0000 |
commit | 62d73fa83bbe229d4630844295c57211e05b5bf7 (patch) | |
tree | aea9eec38bd9205f4453bb1949dcdd0beb52fc9c /libjava/java | |
parent | c6b3e55166d623ffcb00aa56f07519fada4ca6a5 (diff) | |
download | gcc-62d73fa83bbe229d4630844295c57211e05b5bf7.zip gcc-62d73fa83bbe229d4630844295c57211e05b5bf7.tar.gz gcc-62d73fa83bbe229d4630844295c57211e05b5bf7.tar.bz2 |
natFileDescriptorPosix.cc (open): Change error message formatting.
* java/io/natFileDescriptorPosix.cc (open): Change error message
formatting. From David Brownell.
From-SVN: r43564
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/io/natFileDescriptorPosix.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/java/io/natFileDescriptorPosix.cc b/libjava/java/io/natFileDescriptorPosix.cc index cb7a164..4e05cfe 100644 --- a/libjava/java/io/natFileDescriptorPosix.cc +++ b/libjava/java/io/natFileDescriptorPosix.cc @@ -109,7 +109,9 @@ java::io::FileDescriptor::open (jstring path, jint jflags) if (fd == -1) { char msg[MAXPATHLEN + 200]; - sprintf (msg, "%s: %s", buf, strerror (errno)); + // We choose the formatting here for JDK compatibility, believe + // it or not. + sprintf (msg, "%s (%s)", buf, strerror (errno)); throw new FileNotFoundException (JvNewStringLatin1 (msg)); } return fd; |