just panic here for now

This commit is contained in:
Mark McGranaghan 2013-10-06 08:42:34 -07:00
parent e77dcdddd4
commit d61579313a

View File

@ -148,7 +148,7 @@ func resetUrlHashFile(codehash, code, sourcePath string) string {
payload := strings.NewReader(code)
resp, err := http.Post("http://play.golang.org/share", "text/plain", payload)
if err != nil {
// handle error
panic(err)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)