Skip to content

Commit eb82ddc

Browse files
authored
Merge pull request #1837 from ehuss/serve-info
Always show the "serving on" info for `mdbook serve`.
2 parents 4c303c3 + 1d2b720 commit eb82ddc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cmd/serve.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
102102
serve(build_dir, sockaddr, reload_tx, &file_404);
103103
});
104104

105+
let serving_url = format!("http://{}", address);
106+
info!("Serving on: {}", serving_url);
107+
105108
if open_browser {
106-
let serving_url = format!("http://{}", address);
107-
info!("Serving on: {}", serving_url);
108109
open(serving_url);
109110
}
110111

0 commit comments

Comments
 (0)