Skip to content

text/template: wrong name in error message #3280

@rsc

Description

@rsc
http://play.golang.org/p/9nx1qVOyfT

The error should say main:4, but it says foo:4.
The {{define "foo"}} has replaced the file name but
not reset the line number.  (Keeping the original file
name would be a more helpful error than resetting
the line number.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions