mirror of
https://github.com/zellyn/go6502.git
synced 2024-06-25 12:29:33 +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 {
|
switch in.Type {
|
||||||
case inst.TypeUnknown:
|
case inst.TypeUnknown:
|
||||||
return in.Errorf("unknown instruction: %s", line)
|
return line.Errorf("unknown instruction: %s", line.Parse.Text())
|
||||||
case inst.TypeMacroStart:
|
case inst.TypeMacroStart:
|
||||||
if err := a.readMacro(in, lineSources[0]); err != nil {
|
if err := a.readMacro(in, lineSources[0]); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user