This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Java: Improve jcf-write error messages


Obvious patch, I'm checking it in.

regards

Bryce.


2002-03-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

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

Index: jcf-write.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-write.c,v
retrieving revision 1.99
diff -u -r1.99 jcf-write.c
--- jcf-write.c    2002/02/18 04:55:07    1.99
+++ jcf-write.c    2002/03/12 10:29:55
@@ -3370,14 +3370,14 @@
     {
       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);




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]