genautomata.c (write_automata): Include xstrerror output in the error message if...

* genautomata.c (write_automata): Include xstrerror output in the
	error message if writing the DFA description file fails.

From-SVN: r120891
This commit is contained in:
Ben Elliston 2007-01-18 03:12:27 +00:00 committed by Ben Elliston
parent be2cc2136d
commit 19b8c2d976
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-01-18 Ben Elliston <bje@au.ibm.com>
* genautomata.c (write_automata): Include xstrerror output in the
error message if writing the DFA description file fails.
2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
* config/mips/mips-protos.h (mips_output_external): Make it

View File

@ -9234,8 +9234,8 @@ write_automata (void)
{
fflush (output_description_file);
if (ferror (stdout) != 0)
fatal ("Error in writing DFA description file %s",
output_description_file_name);
fatal ("Error in writing DFA description file %s: %s",
output_description_file_name, xstrerror (errno));
fclose (output_description_file);
}
finish_automaton_decl_table ();