Skip to content

[vm] Add more information to kernel loading errors #60885

Open
@dcharkes

Description

@dcharkes

The failures in runtime/vm/kernel_binary.cc are predefined strings. For example:

*error = kKernelInvalidSizeIndicated;

However, this makes the error messages somewhat uninformative in the case where the user of the dart_api.h does not know precisely why the kernel file is invalid.

We should consider expanding these error messages with more details.

(This means changing all the call sites to free errors if they are not nullptr.)

Context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamtype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions