Don't crash if landing can't be fetched

This commit is contained in:
Marcos Lilljedahl
2020-11-13 11:10:48 -03:00
parent e11087356e
commit 7f304a3415

View File

@@ -221,7 +221,8 @@ func initAssets(p *types.Playground) {
lpath := path.Join(p.AssetsDir, "landing.html") lpath := path.Join(p.AssetsDir, "landing.html")
landing, err := Asset(lpath) landing, err := Asset(lpath)
if err != nil { if err != nil {
log.Fatalf("Error loading %v: %v", lpath, err) log.Printf("Could not load %v: %v", lpath, err)
return
} }
var b bytes.Buffer var b bytes.Buffer