mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
Panic with an error by default
This commit is contained in:
parent
b0b5c2978c
commit
262e9a93fe
@ -2156,9 +2156,8 @@ impl fmt::Debug for ErrorSinkRaw {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn default_error_handler(err: crate::Error) {
|
fn default_error_handler(err: crate::Error) {
|
||||||
log::error!("wgpu error: {}\n", err);
|
log::error!("Handling wgpu errors as fatal by default");
|
||||||
|
panic!("wgpu error: {}\n", err);
|
||||||
panic!("Handling wgpu errors as fatal by default");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
Loading…
Reference in New Issue
Block a user