Fixing build errors
This commit is contained in:
parent
3e08b50bd2
commit
d6a5738700
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
|||
all: mumbledj
|
||||
|
||||
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
|
||||
goop install
|
||||
goop go build
|
||||
|
|
2
web.go
2
web.go
|
@ -75,7 +75,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
|
|||
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 {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
|
|
Reference in a new issue