aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/jcf-write.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 15b7bb2..4867739 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+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.
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);