Skip to content

_ErrorDiagnostic.toString() prints "Instance of" #106504

@mockturtl

Description

@mockturtl

A helper method in the Crashlytics plugin recordFlutterError(FlutterErrorDetails) passes the context of its argument as dynamic reason, where toString is called (#L125).

I believe the bug is in assertions.dart, where the various _ErrorDiagnostic subclasses spend some effort at nice formatting.

In the screenshot below (Firebase Crashlytics dashboard), I expect to see the message value, instead of Instance of 'ErrorDescription'.

Screenshot from 2022-06-13 18-46-36

Flutter version: 3.0.2 stable

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: error messageError messages from the Flutter frameworkframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions