From 0f344d37fb3fd998779548cf9b8c19ba75366355 Mon Sep 17 00:00:00 2001 From: Zellyn Hunter Date: Thu, 15 May 2014 17:11:05 -0700 Subject: [PATCH] clean up some error handling --- asm/asm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/asm.go b/asm/asm.go index 65d8c38..430826b 100644 --- a/asm/asm.go +++ b/asm/asm.go @@ -60,7 +60,7 @@ func (a *Assembler) Load(filename string) error { switch in.Type { case inst.TypeUnknown: - return in.Errorf("unknown instruction: %s", line) + return line.Errorf("unknown instruction: %s", line.Parse.Text()) case inst.TypeMacroStart: if err := a.readMacro(in, lineSources[0]); err != nil { return err