[pbs-devel] applied: [PATCH proxmox v3 1/1] rest-server: Improved panic errors with formatted strings

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jan 27 19:22:55 CET 2025


Am 24.01.25 um 16:29 schrieb Laurențiu Leahu-Vlăducu:
> Improved errors when panics occur and the panic message is a
> formatted (not static) string. This worked already for &str literals,
> but not for Strings.
> 
> Downcasting to both &str and String is also done by the Rust Standard
> Library in the default panic handler. See:
> https://github.com/rust-lang/rust/blob/b605c65b6eb5fa71783f8e26df69975f9f1680ee/library/std/src/panicking.rs#L777
> 
> Signed-off-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu at proxmox.com>
> ---
>  proxmox-rest-server/src/worker_task.rs | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
>

applied, thanks!




More information about the pbs-devel mailing list