You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use section in color-eyre it is added as a small section. E.g.
Error:
0: Some context
1: Root cause
Location:
/home/arvid/src/paketkoll/crates/konfigkoll_script/src/engine.rs:240
My custom section with backtrace from embedded scripting language:
0: somefunc()
1: otherfunc()
...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Big Rust spantrace
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Big rust backtrace here
Given that I have an embedded scripting language the user uses to customise my program I would like that custom section to have the same prominence as SPANTRACE and BACKTRACE. It is probably the most relevant section for the user. I can't find a way to add such prominent section in the API.
It would also be nice to be able to customise location to point to the script file (instead of the Rust location where I call into the scripting language VM).
It would also be good to be able to rename SPANTRACE and BACKTRACE to for example "Rust Spantrace" and "Rust Backtrace" to make it more clear to the user.
The text was updated successfully, but these errors were encountered:
When you use
section
in color-eyre it is added as a small section. E.g.Given that I have an embedded scripting language the user uses to customise my program I would like that custom section to have the same prominence as SPANTRACE and BACKTRACE. It is probably the most relevant section for the user. I can't find a way to add such prominent section in the API.
It would also be nice to be able to customise location to point to the script file (instead of the Rust location where I call into the scripting language VM).
It would also be good to be able to rename SPANTRACE and BACKTRACE to for example "Rust Spantrace" and "Rust Backtrace" to make it more clear to the user.
The text was updated successfully, but these errors were encountered: