mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Bug 1331213: Add a descriptive error message when an include isn't found. r=xidorn
Kind of drive-by. MozReview-Commit-ID: CHLYcrLhyRq Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
a70af60eec
commit
4843fcad80
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue