Skip to content

Allow the task failure message to be caught #3408

Closed
@brson

Description

@brson

I've occasionally wanted this (for example, it would enable better error reporting for ICEs) but haven't gotten around to implementing it. It should be quite easy now though. In core::rt::fail stash the value in TLS, then in the task cleanup code, pull it out of TLS and put it into the notification message. Modify task::try to return the string.

Ideally this will someday be an ~any type instead of ~str.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions