Skip to content

Commit

Permalink
pass: improve unknown label error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Mar 18, 2019
1 parent 87539d3 commit 7a0eb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pass/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func CFG(fn *ir.Function) error {
}
target, found := fn.LabelTarget[*lbl]
if !found {
return errors.New("unknown label")
return fmt.Errorf("unknown label %q", *lbl)
}
cur.Succ = append(cur.Succ, target)
}
Expand Down

0 comments on commit 7a0eb66

Please sign in to comment.