diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-03-12 10:32:38 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-03-12 10:32:38 +0000 |
commit | acf8bc2567983c3faf2a5ecc6153b02ce89f57f5 (patch) | |
tree | 3eafb3a07b0b7c1ac4c50346cb5761b8d9eb80fa /gcc/java/jcf-write.c | |
parent | 85559bd41b1f20d9fcbef4dcf2c00afb96b7b034 (diff) | |
download | gcc-acf8bc2567983c3faf2a5ecc6153b02ce89f57f5.zip gcc-acf8bc2567983c3faf2a5ecc6153b02ce89f57f5.tar.gz gcc-acf8bc2567983c3faf2a5ecc6153b02ce89f57f5.tar.bz2 |
* jcf-write.c (write_classfile): Improve error strings.
From-SVN: r50649
Diffstat (limited to 'gcc/java/jcf-write.c')
-rw-r--r-- | gcc/java/jcf-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index bdaebba..f357e63 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -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); |