finderrors.c
changeset 536 5af65fe6e917
parent 524 03eea2f0762c
child 562 c9a2bc5129c9
--- a/finderrors.c	Mon Feb 02 22:56:13 2009 -0500
+++ b/finderrors.c	Tue Feb 03 00:31:34 2009 -0500
@@ -85,9 +85,9 @@
 
         buf[rc] = '\0';  // make sure the source is null-terminated.
         a = MOJOSHADER_assemble((char *) buf, 0, 0, 0, 0, 0, 0, 0);
-        if (a->error)
+        if (a->error_count > 0)
         {
-            report("FAIL: %s (line %d) %s\n", fname, a->error_position, a->error);
+            report("FAIL: %s (line %d) %s\n", fname, a->errors[0].error_position, a->errors[0].error);
             return 1;
         } // if