mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
Provide a useful error message when we fail to create the GLFW window
This commit is contained in:
parent
ebe1c1353c
commit
2babc8dde1
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ impl WindowMethods<Application> for Window {
|
|||
/// Creates a new window.
|
||||
fn new(_: &Application) -> @mut Window {
|
||||
// Create the GLFW window.
|
||||
let glfw_window = glfw::Window::create(800, 600, "Servo", glfw::Windowed).unwrap();
|
||||
let glfw_window = glfw::Window::create(800, 600, "Servo", glfw::Windowed)
|
||||
.expect("Failed to create GLFW window");
|
||||
glfw_window.make_context_current();
|
||||
|
||||
// Create our window object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue