Always print where the playground is running
This commit is contained in:
parent
99243ddaf2
commit
c21bec3716
1 changed files with 2 additions and 1 deletions
|
|
@ -73,8 +73,9 @@ pub fn serve(grammar_path: &Path, open_in_browser: bool) {
|
|||
)
|
||||
})
|
||||
.unwrap();
|
||||
println!("Started playground on '{}'", url);
|
||||
if open_in_browser {
|
||||
if let Err(_) = webbrowser::open(&format!("http://127.0.0.1:{}", port)) {
|
||||
if let Err(_) = webbrowser::open(&url) {
|
||||
eprintln!("Failed to open '{}' in a web browser", url);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue