1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Return winit::error::EventLoopError to caller

This commit is contained in:
Emil Ernerfeldt
2023-11-27 17:41:01 +01:00
parent b65e24db29
commit 5b1b091103
2 changed files with 7 additions and 2 deletions

View File

@@ -316,6 +316,11 @@ pub enum Error {
#[error("winit error: {0}")]
Winit(#[from] winit::error::OsError),
/// An error from [`winit::EventLoop`].
#[cfg(not(target_arch = "wasm32"))]
#[error("winit EventLoopError: {0}")]
WinitEventLoop(#[from] winit::error::EventLoopError),
/// An error from [`glutin`] when using [`glow`].
#[cfg(all(feature = "glow", not(target_arch = "wasm32")))]
#[error("glutin error: {0}")]