pub fn update_last_error<E: Display>(err: E)
Rust function to register a new error.
update_last_error("Hello, World!");