aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-write.c
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>2002-03-12 10:32:38 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2002-03-12 10:32:38 +0000
commitacf8bc2567983c3faf2a5ecc6153b02ce89f57f5 (patch)
tree3eafb3a07b0b7c1ac4c50346cb5761b8d9eb80fa /gcc/java/jcf-write.c
parent85559bd41b1f20d9fcbef4dcf2c00afb96b7b034 (diff)
downloadgcc-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.c4
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);