From 28fea0362570e2a58632a0539b4943274506fb12 Mon Sep 17 00:00:00 2001 From: vaw Date: Sat, 25 Oct 2025 20:53:47 +0000 Subject: [PATCH] Improve error message for `UnknownToken` on login (#514) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7e00137..0a316c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1043,7 +1043,7 @@ async fn run(settings: ApplicationSettings) -> IambResult<()> { match res { Err(UIError::Application(IambError::Matrix(e))) => { if let Some(ErrorKind::UnknownToken { .. }) = e.client_api_error_kind() { - print_exit("Server did not recognize our API token; did you log out from this session elsewhere?") + print_exit(format!("Server did not recognize our API token; did you log out from this session elsewhere?\nTry deleting `{}` to force a clean login.", settings.session_json.display())) } else { print_exit(e) }