aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-06-26 03:27:57 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-06-26 03:27:57 +0000
commit62d73fa83bbe229d4630844295c57211e05b5bf7 (patch)
treeaea9eec38bd9205f4453bb1949dcdd0beb52fc9c /libjava/java
parentc6b3e55166d623ffcb00aa56f07519fada4ca6a5 (diff)
downloadgcc-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.cc4
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;