mirror of
https://github.com/zellyn/go6502.git
synced 2025-04-14 02:36:58 +00:00
clean up some error handling
This commit is contained in:
parent
9edc15ad39
commit
0f344d37fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user