Skip to content

Commit d50e747

Browse files
committed
Panic with an error by default
1 parent a3d4037 commit d50e747

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

wgpu/src/backend/direct.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,9 +2165,8 @@ impl fmt::Debug for ErrorSinkRaw {
21652165
}
21662166

21672167
fn default_error_handler(err: crate::Error) {
2168-
log::error!("wgpu error: {}\n", err);
2169-
2170-
panic!("Handling wgpu errors as fatal by default");
2168+
log::error!("Handling wgpu errors as fatal by default");
2169+
panic!("wgpu error: {}\n", err);
21712170
}
21722171

21732172
#[derive(Debug)]

0 commit comments

Comments
 (0)