aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/bot/src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/bot/src/main.rs b/server/bot/src/main.rs
index ca5f8c92..0e202894 100644
--- a/server/bot/src/main.rs
+++ b/server/bot/src/main.rs
@@ -25,6 +25,7 @@ use hurrycurry_protocol::{
glam::{IVec2, Vec2},
PacketC, PacketS, PlayerID,
};
+use log::warn;
use std::{thread::sleep, time::Duration};
#[derive(Default, Clone, Copy)]
@@ -42,7 +43,7 @@ fn main() -> Result<()> {
rustls::crypto::ring::default_provider()
.install_default()
.unwrap();
-
+
let mut network = Network::connect(
&std::env::args()
.nth(1)
@@ -70,6 +71,9 @@ fn main() -> Result<()> {
interacting: false,
state: Box::new(algos::test::Test::default()),
}),
+ PacketC::Error { message } => {
+ warn!("server error message: {message}");
+ }
_ => (),
}
game.apply_packet(packet);