Skip to content

Should the corresponding error message be added for all asserts? #1839

Closed
@yjhmelody

Description

@yjhmelody

Should the corresponding error message be added for all asserts?
I often encountered assert failures before, such as the path of the compilation, but in fact, I have to read the relevant code carefully to know the specific reason, because there is no related error message for assert.
Before fixed in #1836, some libs will meet errors when asc ./assembly/index.ts , but it's ok when asc ./index.ts.
The index.ts is:

export * from "./assembly/index";

And if the developer modifies the AST, the friendly error can let the developer notice the wrong behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions