mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 05:30:33 -04:00
Currently the WidgetDriver just returns unspecified error strings to the widget that can be used to display an issue description to the user. It is not helpful to run code like a retry or other error mitigation logic. Here it is proposed to add standardized errors for issues that every widget driver implementation can run into (all matrix cs api errors): https://github.com/matrix-org/matrix-spec-proposals/pull/2762#discussion_r1838804895 This PR forwards the errors that occur during the widget processing to the widget in the correct format. NOTE: It does not include request Url and http Headers. See also: https://github.com/matrix-org/matrix-spec-proposals/pull/2762#discussion_r1839802292 Co-authored-by: Benjamin Bouvier <benjamin@bouvier.cc>