From 7b878fe445aabb07bdda4c858f8e67c43152cafe Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Wed, 15 Jan 2025 17:53:44 +0100 Subject: [PATCH] Add a proper error msg to the notifications if the server sends one. --- game/editor/src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game/editor/src/client.rs b/game/editor/src/client.rs index 5662c90..8684a50 100644 --- a/game/editor/src/client.rs +++ b/game/editor/src/client.rs @@ -106,7 +106,9 @@ impl EditorClient { EditorEvent::Command(_) => { // ignore } - EditorEvent::Error(err) => todo!("{}", err), + EditorEvent::Error(err) => { + self.notifications.push(EditorNotification::Error(err)); + } EditorEvent::Auth { .. } => { // ignore }