* jcf-write.c (write_classfile): Improve error strings.
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>
Tue, 12 Mar 2002 10:32:38 +0000 (10:32 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Tue, 12 Mar 2002 10:32:38 +0000 (10:32 +0000)
From-SVN: r50649

gcc/java/ChangeLog
gcc/java/jcf-write.c

index 15b7bb2d864851ddcf70f900592699fac8a9246e..486773904aa87a1e75b61ebfcc7164cba85790ad 100644 (file)
@@ -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.
index bdaebba44eca4ed636ab45f1dfdf86f1380f1b8b..f357e63d9cdeaab7aa6c049a0818a9226bc2bdf3 100644 (file)
@@ -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);