handle errors for game
This commit is contained in:
@@ -12,7 +12,9 @@ fn main() {
|
||||
.nth(2)
|
||||
.expect("No output path specified. Usage: `smiley infile outfile`");
|
||||
|
||||
let mut game = Game::from(fs::read_to_string(input_file).unwrap());
|
||||
let mut game = Game::from(
|
||||
fs::read_to_string(input_file).unwrap()
|
||||
).unwrap();
|
||||
|
||||
game.avatar.animation_frames = vec![Image {
|
||||
pixels: vec![
|
||||
|
||||
Reference in New Issue
Block a user