Skip to content

How to get Rune backtraces for native Results at runtime? #811

@VorpalBlade

Description

@VorpalBlade

When Rune's Vm::async_call returns a VmError you can get a nice backtrace using VmError::emit. However if you return custom Result<T, CustomError> from your native methods it doesn't seem there is a way to capture the Rune backtrace as far as I can tell?

I could consider sticking the backtrace in my custom error type if I knew how to capture it when returning from my native code for example.

This is either a request for a feature or request for improved documentation (the latter I would be willing to PR if you point me in the right direction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions