From 177f29d732876067569e03e5fd7e281189c3b68d Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 2 Jan 2021 01:20:29 +0100 Subject: [PATCH] Error Handling --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6fa60f2..3d16769 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,10 @@ mod azul; use azul::Game; -fn main() { +fn main() -> Result<(), &'static str>{ - let game = Game::new(2); + let game = Game::new(2)?; println!("{:#?}", game); + + Ok(()) }