changeset 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 c94436adce83
children 54499b799779
files lwasm/lwasm.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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);
 	}
 }