commit c64fcd7214d08db9041cd4ddba67ea69e40f3562
parent 91e9765025599f378ec908347ee0bdf60f63d8fd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 12 Dec 2017 14:19:25 +0000
[as] Add additional information in as() error
The name of the faulting instruction is a good idea here.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/as/main.c b/as/main.c
@@ -48,7 +48,7 @@ as(char *text, char *xargs)
ins = bsearch(text, instab, nr_ins, sizeof(Ins), cmp);
if (!ins) {
- error("invalid instruction");
+ error("invalid instruction '%s'", text);
return;
}