* java/io/natFileDescriptorPosix.cc (open): Change error message
formatting. From David Brownell.
From-SVN: r43564
+2001-06-25 Tom Tromey <tromey@redhat.com>
+
+ * java/io/natFileDescriptorPosix.cc (open): Change error message
+ formatting. From David Brownell.
+
2001-06-21 Tom Tromey <tromey@redhat.com>
* include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
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;