package tpp import ( //"errors" "fmt" ) type UnexpectedError struct { What string Line int } func (err UnexpectedError) Error() string { return fmt.Sprintf("%d: unexpected %s", err.Line, err.What) }