Skip to content

Commit

Permalink
Added context to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JonahPlusPlus committed Aug 3, 2022
1 parent 16183c0 commit 19d9b01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Expand Up @@ -40,7 +40,7 @@ fn initial_grab_cursor(mut windows: ResMut<Windows>) {
if let Some(window) = windows.get_primary_mut() {
toggle_grab_cursor(window);
} else {
warn!("Primary window not found!");
warn!("Primary window not found for `initial_grab_cursor`!");
}
}

Expand Down Expand Up @@ -88,7 +88,7 @@ fn player_move(
transform.translation += velocity * time.delta_seconds() * settings.speed
}
} else {
warn!("Primary window not found!");
warn!("Primary window not found for `player_move`!");
}
}

Expand Down Expand Up @@ -121,7 +121,7 @@ fn player_look(
}
}
} else {
warn!("Primary window not found!");
warn!("Primary window not found for `player_look`!");
}
}

Expand All @@ -131,7 +131,7 @@ fn cursor_grab(keys: Res<Input<KeyCode>>, mut windows: ResMut<Windows>) {
toggle_grab_cursor(window);
}
} else {
warn!("Primary window not found!");
warn!("Primary window not found for `cursor_grab`!");
}
}

Expand Down

0 comments on commit 19d9b01

Please sign in to comment.