diff lwasm/lwasm.c @ 394:a2f52e97b454

Actually show name of file and line number where error occurred
author lost@l-w.ca
date Fri, 23 Jul 2010 16:23:54 -0600
parents c1d83336e1d1
children 1d69ed28f175
line wrap: on
line diff
--- a/lwasm/lwasm.c	Thu Jul 22 23:11:04 2010 -0600
+++ b/lwasm/lwasm.c	Fri Jul 23 16:23:54 2010 -0600
@@ -784,8 +784,7 @@
 		{
 			fprintf(stderr, "WARNING: %s\n", e -> mess);
 		}
-		
-		fprintf(stderr, "  LINE: %s\n", cl -> ltext);
+		fprintf(stderr, "%s:%05d %s\n\n", cl -> linespec, cl -> lineno, cl -> ltext);
 	}
 }