Skip to content

Commit

Permalink
Log errors in more places.
Browse files Browse the repository at this point in the history
  • Loading branch information
nical committed Nov 22, 2023
1 parent 8184eb9 commit a017dd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wgpu-core/src/device/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
return (id, None);
};

log::error!("Device::create_texture error {error:?}");

let id = fid.assign_error(desc.label.borrow_or_default());
(id, Some(error))
}
Expand Down Expand Up @@ -646,6 +648,8 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
return (id, None);
};

log::error!("Device::create_texture error {error:?}");

let id = fid.assign_error(desc.label.borrow_or_default());
(id, Some(error))
}
Expand Down Expand Up @@ -698,6 +702,8 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
return (id, None);
};

log::error!("Device::create_buffer error {error:?}");

let id = fid.assign_error(desc.label.borrow_or_default());
(id, Some(error))
}
Expand Down Expand Up @@ -2314,6 +2320,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
if let Some(callback) = operation.callback.take() {
callback.call(Err(err.clone()));
}
log::error!("Buffer::map_async error {err:?}");
return Err(err);
}

Expand Down

0 comments on commit a017dd6

Please sign in to comment.