Skip to content

Commit 8e0e422

Browse files
authored
Improve clarity of WindowTextureNode and WindowSwapchainNode error messages (#1355)
Improve clarity of WindowTextureNode and WindowSwapchainNode error messages
1 parent 61c9a40 commit 8e0e422

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_render/src/render_graph/nodes/window_swapchain_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Node for WindowSwapChainNode {
4949

5050
let window = windows
5151
.get(self.window_id)
52-
.expect("Received window resized event for non-existent window.");
52+
.expect("Window swapchain node refers to a non-existent window.");
5353

5454
let render_resource_context = render_context.resources_mut();
5555

crates/bevy_render/src/render_graph/nodes/window_texture_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl Node for WindowTextureNode {
5252

5353
let window = windows
5454
.get(self.window_id)
55-
.expect("Received window resized event for non-existent window.");
55+
.expect("Window texture node refers to a non-existent window.");
5656

5757
if self
5858
.window_created_event_reader

0 commit comments

Comments
 (0)