Commit acf8bc25 by Bryce McKinlay Committed by Bryce McKinlay

* jcf-write.c (write_classfile): Improve error strings.

From-SVN: r50649
parent 85559bd4
2002-03-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* jcf-write.c (write_classfile): Improve error strings.
2002-03-11 Eric Blake <ebb9@email.byu.edu>
* lex.c: Adjust comments to GNU standards.
......
......@@ -3370,14 +3370,14 @@ write_classfile (clas)
{
FILE *stream = fopen (class_file_name, "wb");
if (stream == NULL)
fatal_io_error ("can't to open %s", class_file_name);
fatal_io_error ("can't open %s for writing", class_file_name);
jcf_dependency_add_target (class_file_name);
init_jcf_state (state, work);
chunks = generate_classfile (clas, state);
write_chunks (stream, chunks);
if (fclose (stream))
fatal_io_error ("can't close %s", class_file_name);
fatal_io_error ("error closing %s", class_file_name);
free (class_file_name);
}
release_jcf_state (state);
......
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