aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/trace
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2015-08-21 20:31:50 +0200
committerDavid du Colombier <0intro@gmail.com>2015-08-21 20:02:23 +0000
commit9538e4e73b42c273be9c5e2bb7b356b454b10dbd (patch)
tree9536370863776469d9cb80a09d1f355edce1e030 /src/cmd/trace
parent13b5dc885b8dfd550b5f8cac0e9c0a9463f30fd7 (diff)
downloadgo-9538e4e73b42c273be9c5e2bb7b356b454b10dbd.tar.xz
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/13774 Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Diffstat (limited to 'src/cmd/trace')
-rw-r--r--src/cmd/trace/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/trace/main.go b/src/cmd/trace/main.go
index 27d8699b5a..e493be91b7 100644
--- a/src/cmd/trace/main.go
+++ b/src/cmd/trace/main.go
@@ -71,7 +71,7 @@ func main() {
}
// Open browser.
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.