Skip to content

Commit

Permalink
Replace result error type when device where window is created isn't s…
Browse files Browse the repository at this point in the history
…upported

Closes #242
  • Loading branch information
ezioleq committed Oct 19, 2023
1 parent e937049 commit 17a3165
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::Arc;
use cgmath::Vector2;

use crate::{
errors::invalid_operation::InvalidOperationError,
errors::platform_not_supported::PlatformNotSupportedError,
interop::prelude::{InteropOption, InteropResult, InteropString},
rendering::presentation::{input::InputData, window::Window, window_settings::WindowSettings},
};
Expand Down Expand Up @@ -31,7 +31,7 @@ extern "C" fn rendering_presentation_window_interop_create(

#[allow(unreachable_code)]
InteropResult::with_err(
InvalidOperationError::with_str("Window is not supported on this device.").into(),
PlatformNotSupportedError::with_str("Window is not supported on this device.").into(),
)
}

Expand Down

0 comments on commit 17a3165

Please sign in to comment.