[kaffe] CVS kaffe (dalibor): Improved error message when library is not found

Kaffe CVS cvs-commits at kaffe.org
Thu Jul 15 06:16:28 PDT 2004


PatchSet 4974 
Date: 2004/07/15 13:07:20
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Improved error message when library is not found

2004-07-15  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/external.c
        (loadNativeLibrary2): Improve error message when library
        can't be found.

        Reported by: Fabien Renaud  <renaud at nentec.de>

Members: 
	ChangeLog:1.2538->1.2539 
	kaffe/kaffevm/external.c:1.64->1.65 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2538 kaffe/ChangeLog:1.2539
--- kaffe/ChangeLog:1.2538	Thu Jul 15 10:29:33 2004
+++ kaffe/ChangeLog	Thu Jul 15 13:07:20 2004
@@ -1,3 +1,11 @@
+2004-07-15  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/external.c
+	(loadNativeLibrary2): Improve error message when library 
+	can't be found.
+
+	Reported by: Fabien Renaud  <renaud at nentec.de>
+
 2004-07-15  Dalibor Topic  <robilad at kaffe.org>,
 	    Timothy S. Stack <stack at cs.utah.edu>
 
Index: kaffe/kaffe/kaffevm/external.c
diff -u kaffe/kaffe/kaffevm/external.c:1.64 kaffe/kaffe/kaffevm/external.c:1.65
--- kaffe/kaffe/kaffevm/external.c:1.64	Fri Jul  9 12:50:15 2004
+++ kaffe/kaffe/kaffevm/external.c	Thu Jul 15 13:07:24 2004
@@ -337,13 +337,15 @@
 				{
                                 char *last_sep = strrchr (path, file_separator[0]);
 #ifdef HAVE_SNPRINTF
-                                snprintf (errbuf, errsiz, "%s: not found",
-                                          last_sep==NULL?path:last_sep+1);
+                                snprintf (errbuf, errsiz, "%s: not found.\n%s",
+                                          last_sep==NULL?path:last_sep+1,
+					  err);
 #else
                                 /* possible buffer overflow problem */
                                 if(errbuf != 0)
-                                    sprintf (errbuf, "%s: not found",
-                                          last_sep==NULL?path:last_sep+1);
+                                    sprintf (errbuf, "%s: not found.\n%s",
+                                          last_sep==NULL?path:last_sep+1,
+					  err);
 #endif
 				}
 				else




More information about the kaffe mailing list