aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/main/platform/common/glfw_windowing.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/main/platform/common/glfw_windowing.rs b/src/components/main/platform/common/glfw_windowing.rs
index de02a9b861c..0a7f255665c 100644
--- a/src/components/main/platform/common/glfw_windowing.rs
+++ b/src/components/main/platform/common/glfw_windowing.rs
@@ -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.