~rogpeppe/gocheck/add-list-flag

« back to all changes in this revision

Viewing changes to printer.go

  • Committer: Gustavo Niemeyer
  • Date: 2011-11-09 14:47:10 UTC
  • mfrom: (61.1.2 gocheck)
  • Revision ID: gustavo@niemeyer.net-20111109144710-c7qowlmtwf1gwyvu
Merged error-fixes branch by Roger Peppe.

This handles the os.Error => error transition, and also introduces
new ErrorMatches and PanicMatches checkers that enable handling the
new error type more properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        return s
27
27
}
28
28
 
29
 
func printLine(filename string, line int) (string, os.Error) {
 
29
func printLine(filename string, line int) (string, error) {
30
30
        fset := token.NewFileSet()
31
31
        file, err := os.Open(filename)
32
32
        if err != nil {