Improve clarity of WindowTextureNode and WindowSwapchainNode error messages (#1355)
Improve clarity of WindowTextureNode and WindowSwapchainNode error messages
This commit is contained in:
parent
61c9a40fde
commit
8e0e4223e5
@ -49,7 +49,7 @@ impl Node for WindowSwapChainNode {
|
||||
|
||||
let window = windows
|
||||
.get(self.window_id)
|
||||
.expect("Received window resized event for non-existent window.");
|
||||
.expect("Window swapchain node refers to a non-existent window.");
|
||||
|
||||
let render_resource_context = render_context.resources_mut();
|
||||
|
||||
|
||||
@ -52,7 +52,7 @@ impl Node for WindowTextureNode {
|
||||
|
||||
let window = windows
|
||||
.get(self.window_id)
|
||||
.expect("Received window resized event for non-existent window.");
|
||||
.expect("Window texture node refers to a non-existent window.");
|
||||
|
||||
if self
|
||||
.window_created_event_reader
|
||||
|
||||
Loading…
Reference in New Issue
Block a user