aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-09-05 12:56:18 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-10-17 18:16:41 -0700
commit2babc8dde192a045e9ab8e46a299d0c16876b507 (patch)
tree05c55643381de5079a967b61f58b8fc3225468b2 /src
parentebe1c1353ca0ffe1f0e195f4ed66abb982f303ee (diff)
downloadservo-2babc8dde192a045e9ab8e46a299d0c16876b507.tar.gz
servo-2babc8dde192a045e9ab8e46a299d0c16876b507.zip
Provide a useful error message when we fail to create the GLFW window
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.