It's traditional (at least on Unix) to put the message after a ": " not within parens. http://pubs.opengroup.org/onlinepubs/009695399/functions/perror.html
374 if (sb.st_uid != uid) { 375 msg = "file is not owned by the current user"; 376 } else if (sb.st_gid != gid) { 377 msg = "file's group is not the effective group"; Why do you use the word "effective" with the gid, but not the uid? On Tue, Mar 10, 2015 at 3:21 AM, Staffan Larsen <staffan.lar...@oracle.com> wrote: > During attach, if the .java_pid file is not secure we currently say > "well-known file is not secure". This can be enhanced to say _why_ the file > is not considered secure. > > bug: https://bugs.openjdk.java.net/browse/JDK-8074812 > webrev: http://cr.openjdk.java.net/~sla/8074812/webrev.00/ > > Note that it is safe to call JNU_ReleaseStringPlatformChars after the > calls to JNU_ThrowIOException since the latter don’t actually change the > control flow. > > Thanks, > /Staffan