Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(capture_webrender): write webrender revision into text #20320

Merged
merged 5 commits into from Mar 23, 2018
Prev

style(capture_webrender): use eprintln for error output

  • Loading branch information
kwonoj committed Mar 23, 2018
commit 5f6977306c05ae92c588d50710b7c5751c8cab61
@@ -1544,7 +1544,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
let revision_file_path = capture_path.join("wr.txt");

if let Err(err) = create_dir_all(&capture_path) {
println!("Unable to create path '{:?}' for capture: {:?}", capture_path, err);
eprintln!("Unable to create path '{:?}' for capture: {:?}", capture_path, err);
return
}

@@ -1554,13 +1554,13 @@ impl<Window: WindowMethods> IOCompositor<Window> {
Ok(mut file) => {
let revision = include!(concat!(env!("OUT_DIR"), "/webrender_revision.rs"));
if let Err(err) = write!(&mut file, "{}", revision) {
println!("Unable to write webrender revision: {:?}", err)
eprintln!("Unable to write webrender revision: {:?}", err)
}
}
Err(err) => println!("Capture triggered, creating webrender revision info skipped: {:?}", err)
Err(err) => eprintln!("Capture triggered, creating webrender revision info skipped: {:?}", err)
}
},
Err(err) => println!("Unable to locate path to save captures: {:?}", err)
Err(err) => eprintln!("Unable to locate path to save captures: {:?}", err)
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.