Skip to content

[mustache_template] Improve error throwing #174938

@stuartmorgan-g

Description

@stuartmorgan-g

The Gemini review of the initial import of mustache_template flagged some latent issues in the error handling, which would be good to resolve:

  • There are several lines that call _error but don't throw the returned exception, making it basically a no-op, when it seems like it was intended to throw an exception.
  • Some code that should be unreachable throws Exception when a more idiomatic Dart approach would be to throw StateError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: mustache_templateThe mustache_template packagepackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions