validate_prefix_locations follow-up

translate errno in the log file too.
This commit is contained in:
nethack.allison
2002-07-05 14:46:31 +00:00
parent 895199a83b
commit b41dab0b7a

View File

@@ -184,7 +184,8 @@ char *reasonbuf;
}
/* the paniclog entry gets the value of errno as well */
Sprintf(panicbuf1,"Invalid %s", fqn_prefix_names[prefcnt]);
Sprintf(panicbuf2,"\"%s\" (errno=%d)", fqn_prefix[prefcnt], errno);
Sprintf(panicbuf2,"\"%s\", (%d) %s",
fqn_prefix[prefcnt], errno, strerror(errno));
paniclog(panicbuf1, panicbuf2);
failcount++;
}