ref: 9cdf8d4b4c9ecf24e8e065fdbf9a6aea48d5f4af
parent: 3f578df67900a3ddfc775df18b6d599e82716814
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Dec 12 09:19:25 EST 2017
[as] Add additional information in as() error The name of the faulting instruction is a good idea here.
--- a/as/main.c
+++ b/as/main.c
@@ -48,7 +48,7 @@
ins = bsearch(text, instab, nr_ins, sizeof(Ins), cmp);
if (!ins) {
- error("invalid instruction");
+ error("invalid instruction '%s'", text);
return;
}