Skip to content

Commit

Permalink
Add a proper error msg to the notifications if the server sends one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupeyy committed Jan 15, 2025
1 parent 52a4948 commit 7b878fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion game/editor/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7b878fe

Please sign in to comment.