Commit 9538e4e7 authored by David du Colombier's avatar David du Colombier

cmd/trace: don't fail when no browser is available

When there is no browser available on the system,
we should print the URL instead of failing.

Change-Id: I4a2b099e17609394273eff150062c285d76bbac1
Reviewed-on: https://go-review.googlesource.com/13774Reviewed-by: default avatarDmitry Vyukov <dvyukov@google.com>
parent 13b5dc88
...@@ -71,7 +71,7 @@ func main() { ...@@ -71,7 +71,7 @@ func main() {
} }
// Open browser. // Open browser.
if !startBrowser("http://" + ln.Addr().String()) { if !startBrowser("http://" + ln.Addr().String()) {
dief("failed to start browser\n") fmt.Fprintf(os.Stderr, "Trace viewer is listening on http://%s\n", ln.Addr().String())
} }
// Parse and symbolize trace asynchronously while browser opens. // Parse and symbolize trace asynchronously while browser opens.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment