finderrors.c
changeset 577 bec531dd448e
parent 562 c9a2bc5129c9
child 578 6c8f73c845e7
--- a/finderrors.c	Thu Feb 12 02:18:24 2009 -0500
+++ b/finderrors.c	Thu Feb 12 02:37:59 2009 -0500
@@ -88,7 +88,10 @@
 
         if (a->error_count > 0)
         {
-            report("FAIL: %s (line %d) %s\n", fname, a->errors[0].error_position, a->errors[0].error);
+            report("FAIL: %s (line %d) %s\n",
+                a->errors[0].filename ? a->errors[0].filename : "???",
+                a->errors[0].error_position,
+                a->errors[0].error);
             return 1;
         } // if