Skip to content

Improve error handling in the build scripts #10997

@YohDeadfall

Description

@YohDeadfall

Describe the annoyance

Originally made as an TODO by @emilk:

#[allow(clippy::unnecessary_wraps)] // TODO(emilk): implement proper error handling instead of exiting on the first cargo_error

The build scripts are more mature now with cargo_error from #10941, issues are reported one by one which may degrade developer experience if something goes wrong and it requires a several iterations of fixes and compilations.

Additional context

As not everything in crates/build is for build scripts, some panic! should be changed to use the reporter passed in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    😤 annoyingSomething in the UI / SDK is annoying to use🧑‍💻 dev experiencedeveloper experience (excluding CI)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions