Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-03 23:11:11 +01:00
parent 3e08b50bd2
commit d6a5738700
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
all: mumbledj all: mumbledj
mumbledj: main.go commands.go parseconfig.go strings.go service.go service_youtube.go songqueue.go cache.go web.go mumbledj: main.go commands.go parseconfig.go strings.go service.go service_youtube.go songqueue.go cache.go web.go
go get github.com/nitrous-io/goop if [! -f $GOPATH/bin/goop ]; then go get github.com/nitrous-io/goop; fi;
rm -rf Goopfile.lock rm -rf Goopfile.lock
goop install goop install
goop go build goop go build

2
web.go
View file

@ -75,7 +75,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
webpage = "index" webpage = "index"
} }
t, err := template.ParseFiles(fmt.Sprintf("%s/.mumbledj/songs/%s.html", dj.homeDir, uname.Name)) t, err := template.ParseFiles(fmt.Sprintf("%s/.mumbledj/songs/%s.html", dj.homeDir, webpage))
if err != nil { if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusInternalServerError)
return return