From 4843fcad80542460a1b6e8d93092e09c3439e7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 14 Jan 2017 16:17:12 +0100 Subject: [PATCH] Bug 1331213: Add a descriptive error message when an include isn't found. r=xidorn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kind of drive-by. MozReview-Commit-ID: CHLYcrLhyRq Signed-off-by: Emilio Cobos Álvarez --- components/style/build_gecko.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 6a524f6ddc0..3a99014a316 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -99,7 +99,7 @@ mod bindings { fn add_include(name: &str) -> String { let mut added_paths = ADDED_PATHS.lock().unwrap(); - let file = search_include(name).unwrap(); + let file = search_include(name).expect("Include not found!"); let result = String::from(file.to_str().unwrap()); add_headers_recursively(file, &mut *added_paths); result