Skip to content

Commit

Permalink
Bug 1331213: Add a descriptive error message when an include isn't fo…
Browse files Browse the repository at this point in the history
…und. r=xidorn

Kind of drive-by.

MozReview-Commit-ID: CHLYcrLhyRq
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
  • Loading branch information
emilio committed Jan 17, 2017
1 parent a70af60 commit 4843fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/build_gecko.rs
Expand Up @@ -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
Expand Down

0 comments on commit 4843fca

Please sign in to comment.