mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(go): show where in main.sym that errors appear
This commit is contained in:
parent
cf049a801f
commit
adb68c759c
1 changed files with 141 additions and 139 deletions
|
|
@ -126,11 +126,13 @@ func load(text io.Reader, table Table) (err error) {
|
|||
err = nil
|
||||
break
|
||||
} else {
|
||||
err = fmt.Errorf("symfile: error reading at line %d: %w", l.line_number, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if err = l.parse_line(line); err != nil {
|
||||
err = fmt.Errorf("symfile: error parsing at line %d: %w", l.line_number, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue