mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 10:03:58 +01:00
Panic with an error by default
This commit is contained in:
1 parent
a3d4037fb5
commit
d50e74747d
1 file changed
+2
-3
@@ -2165,9 +2165,8 @@ impl fmt::Debug for ErrorSinkRaw {
|
||||
}
|
||||
|
||||
fn default_error_handler(err: crate::Error) {
|
||||
log::error!("wgpu error: {}\n", err);
|
||||
|
||||
panic!("Handling wgpu errors as fatal by default");
|
||||
log::error!("Handling wgpu errors as fatal by default");
|
||||
panic!("wgpu error: {}\n", err);
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in new issue
Block a user