package buildfile import ( "fmt" ) type LineError struct { Line int Err error } func (le LineError) Error() string { return fmt.Sprintf("line %d | %s", le.Line, le.Err.Error()) }