summaryrefslogtreecommitdiff
path: root/asm.myr
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>2019-12-27 16:59:16 -0500
committerJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>2019-12-27 17:00:18 -0500
commit2122e32f072378758c8a4c693036678300d40631 (patch)
treedb592f6f7127c71d28bb639bd72abfec77949025 /asm.myr
parentcfcc77e723ccb9aa023e35d3d0172161d4907bed (diff)
Improve error message for unrecognized instructions.
Diffstat (limited to 'asm.myr')
-rw-r--r--asm.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm.myr b/asm.myr
index 250f242..2d2d172 100644
--- a/asm.myr
+++ b/asm.myr
@@ -129,7 +129,7 @@ const emitinstr = {p
;;
;;
| _:
- -> `std.Err("unrecognized instruction")
+ -> `std.Err(std.fmt("unrecognized instruction {}", p[0]))
;;
-> `std.Ok((b, mark))