Skip to content

Feature: Add support for message in WIL logging handler #1466

@arthuraraujo-msft

Description

@arthuraraujo-msft

Version

2.0.240405.15

Summary

It'd be great to have support for messages along with exceptions when using the winrt_throw_hresult_handler handler that was created for WIL logging hooks.
The implementation at hresult_error::originate() seems like a good place to do it since it already has access to a message. It could pass that to the handler.
WIL would also require a change to support passing that message to its callbacks.

Reproducible example

Expected behavior

No response

Actual behavior

No response

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions