summaryrefslogtreecommitdiff
path: root/misc/goplay
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-02-01 12:47:35 -0800
committerRob Pike <r@golang.org>2011-02-01 12:47:35 -0800
commitebae8d362a0a14f95c3aff11be46b6048e8ea1c1 (patch)
treeac6e430df32d3d801c748c7e847faa5cc75556cd /misc/goplay
parent4260f1f3fd92b6a9311526de268f8a3774c94c22 (diff)
downloadgo-ebae8d362a0a14f95c3aff11be46b6048e8ea1c1.tar.gz
log: rename Exit* to Fatal*
This aligns the naming scheme with the testing package and also lets govet work on more logging calls. R=rsc CC=golang-dev http://codereview.appspot.com/4001048
Diffstat (limited to 'misc/goplay')
-rw-r--r--misc/goplay/goplay.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/goplay/goplay.go b/misc/goplay/goplay.go
index 5923360f6..bc11bb759 100644
--- a/misc/goplay/goplay.go
+++ b/misc/goplay/goplay.go
@@ -42,7 +42,7 @@ func main() {
case "386":
archChar = "8"
default:
- log.Exitln("unrecognized GOARCH:", runtime.GOARCH)
+ log.Fatalln("unrecognized GOARCH:", runtime.GOARCH)
}
// source of unique numbers
@@ -54,7 +54,7 @@ func main() {
http.HandleFunc("/", FrontPage)
http.HandleFunc("/compile", Compile)
- log.Exit(http.ListenAndServe(*httpListen, nil))
+ log.Fatal(http.ListenAndServe(*httpListen, nil))
}
// FrontPage is an HTTP handler that renders the goplay interface.