mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Send servo version in mozbrowser error.
Also moved servo version to util for usage by the --version flag and for sending the version to browser.html with mozbrowsererror
This commit is contained in:
parent
f2d798232f
commit
ed678cb7f1
4 changed files with 9 additions and 1 deletions
|
@ -40,6 +40,7 @@ use servo::Browser;
|
|||
use servo::compositing::windowing::WindowEvent;
|
||||
use servo::util::opts::{self, ArgumentParsingResult};
|
||||
use servo::util::panicking::initiate_panic_hook;
|
||||
use servo::util::servo_version;
|
||||
use std::process;
|
||||
use std::rc::Rc;
|
||||
|
||||
|
@ -104,7 +105,7 @@ fn main() {
|
|||
}
|
||||
|
||||
if opts::get().is_printing_version {
|
||||
println!("Servo {}{}", env!("CARGO_PKG_VERSION"), env!("GIT_INFO"));
|
||||
println!("{}", servo_version());
|
||||
process::exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue