Skip to content

Commit

Permalink
add /config to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
XiovV committed Dec 29, 2019
1 parent 180c697 commit 8bc9a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/NewRetroWave
/ThePrimeThanatos
/UCpbH_7H71IPKq4eH7CD5spg
/downloads
log.log
go-auto-yt
nohup.out
.idea
/config
3 changes: 1 addition & 2 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func HandleAddTarget(w http.ResponseWriter, r *http.Request) {
log.Info("received a request to add a target")
w.Header().Set("Content-Type", "application/json")
var targetData AddTargetPayload
log.Info(targetData)
err := json.NewDecoder(r.Body).Decode(&targetData)
if err != nil {
errRes = Response{Type: "Error", Key: "ERROR_PARSING_DATA", Message: "There was an error parsing json: " + err.Error()}
Expand Down Expand Up @@ -88,7 +87,7 @@ func HandleAddTarget(w http.ResponseWriter, r *http.Request) {
err = target.AddToDatabase()
if err != nil {
log.Error(err)
errRes = Response{Type: "Error", Key: "ERROR_ADDING_PLAYLIST", Message: "There was an error adding the playlist to the database" + err.Error()}
errRes = Response{Type: "Error", Key: "ERROR_ADDING", Message: "There was an error adding the playlist to the database" + err.Error()}
ReturnResponse(w, errRes)
return
}
Expand Down

0 comments on commit 8bc9a7e

Please sign in to comment.