Merge pull request #1837 from ehuss/serve-info
Always show the "serving on" info for `mdbook serve`.
This commit is contained in:
commit
eb82ddca0b
|
@ -102,9 +102,10 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
|
||||||
serve(build_dir, sockaddr, reload_tx, &file_404);
|
serve(build_dir, sockaddr, reload_tx, &file_404);
|
||||||
});
|
});
|
||||||
|
|
||||||
if open_browser {
|
|
||||||
let serving_url = format!("http://{}", address);
|
let serving_url = format!("http://{}", address);
|
||||||
info!("Serving on: {}", serving_url);
|
info!("Serving on: {}", serving_url);
|
||||||
|
|
||||||
|
if open_browser {
|
||||||
open(serving_url);
|
open(serving_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue