clean up some error handling

This commit is contained in:
Zellyn Hunter 2014-05-15 17:11:05 -07:00
parent 9edc15ad39
commit 0f344d37fb
1 changed files with 1 additions and 1 deletions

View File

@ -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