Skip to content

Commit

Permalink
Fix error message string composition
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-marschke committed Jan 8, 2024
1 parent 3d8e7bc commit 8ee4d99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/projects/webhookextractvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,13 @@ func DeleteWebhookExtractValue(w http.ResponseWriter, r *http.Request) {
})
}
extractor := context.Get(r, "extractor").(db.WebhookExtractor)

var value db.WebhookExtractValue
value, err = helpers.Store(r).GetWebhookExtractValue(extractor.ID, value_id)

if err != nil {
log.Error(err)
helpers.WriteJSON(w, http.StatusBadRequest, map[string]interface{}{
"error": fmt.Sprintf("Webhook Extract Value failed to be deleted %v", err),
"error": "Webhook Extract Value failed to be deleted",
})
return
}
Expand Down

0 comments on commit 8ee4d99

Please sign in to comment.