utils/finderrors.c
changeset 956 7888858a6777
parent 904 5989f0d4185a
child 1104 9147482e1ec7
--- a/utils/finderrors.c	Wed Nov 17 15:58:40 2010 -0500
+++ b/utils/finderrors.c	Thu Nov 18 22:42:58 2010 -0500
@@ -132,10 +132,17 @@
     }
     #else
     const MOJOSHADER_parseData *pd = MOJOSHADER_parse(profile, buf, rc, NULL, 0, NULL, NULL, NULL);
-    if (pd->error != NULL)
-        report("FAIL: %s (position %d) %s\n", fname, pd->error_position, pd->error);
-    else
+    if (pd->error_count == 0)
         report("PASS: %s\n", fname);
+	else
+	{
+		int i;
+		for (i = 0; i < pd->error_count; i++)
+		{
+			report("FAIL: %s (position %d) %s\n", pd->errors[i].filename,
+			       pd->errors[i].error_position, pd->errors[i].error);
+		} // for
+	} // else
     MOJOSHADER_freeParseData(pd);
     #endif