Skip to content

[native_assets_cli] Yaml parsing should throw FormatExceptions #109

Closed
@dcharkes

Description

@dcharkes

Currently, the fromYaml factory constructors are expecting mostly well formatted yaml contents, and will fail on casts rather than throw FormatExceptions in a bunch of cases.

If other implementations of build.dart do not use the toYaml provided in this package, then this could potentially make the native_assets_builder fail in dartdev/flutter_tools.

We should program more defensively and throw FormatExceptions everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onpackage:hooks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions