Commit a1f17b2d authored by Roland McGrath's avatar Roland McGrath
Browse files

(report_file_error): Use strerror instead of sys_errlist.

parent 03c71d89
......@@ -137,10 +137,7 @@ report_file_error (string, data)
Lisp_Object errstring;
if (errno >= 0 && errno < sys_nerr)
errstring = build_string (sys_errlist[errno]);
errstring = build_string ("undocumented error code");
errstring = build_string (strerror (errno));
/* System error messages are capitalized. Downcase the initial
unless it is followed by a slash. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment